SSH Tunnels

Bash script found here: https://gist.github.com/scy/6781836 * -fRun in the background before command execution. * -NDon’t execute any commands * -TDisable pseudo-tty allocation. * -S socketnameUse a control socket with name socketname * -MPut control socket in master mode * -O check, exitControl command #!/bin/bash ip="1.1.1.1"…

ssh-copy-id and sshd port

For security purposes, I don’t run sshd on the default port (22). This gave me some problems when attempting to use the commandssh-copy-id. Ideally, you’d expect the following to work: > ssh-copy-id -p XXXX -i '~/.ssh/id_rsa.pub' username@host However, that didn’t do anything but…