Quote a “-p” flag specifying the port with the “user@machine” portion of the arguments; e.g. for port 2234: Hat tip to Mike Gerwitz for getting me looking in the right direction, although the solution described on his blog does not work with the version of ssh-copy-id I have. (Edit: Looks like the same solution that [...]
To convert an SSH key from SSH2-compatible format to OpenSSH-compatible, use the “-i” flag to “ssh-keygen”: -i This option will read an unencrypted private (or public) key file in SSH2-compatible format and print an OpenSSH compatible private (or public) key to stdout. ssh-keygen also reads the RFC 4716 SSH Public Key File Format. This option [...]
Many more at 25 BEST SSH COMMANDS / TRICKS; three I didn’t know: Copy your SSH public key to your authorized_keys on another host: Login to a host you can’t directly reach, through an intermediary that can reach the host: (The -t flag is necessary to allocate a pseudo-tty.) Use a Wireshark running locally to [...]
Use ssh-keygen, just like you would with an account’s key pair: # ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N ” -t rsa # ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N ” -t dsa