I read the man page for ssh-copy-id and the -p
port switch seems to not work.
ssh-copy-id -p 22025 -i .ssh/id_rsa.pub email@example.com
I get this message from the shell:
usage: ssh-copy-id [-i identity_file] [user@]hostname
I tried again without the -p
ssh-copy-id -i .ssh/id_rsa.pub firstname.lastname@example.org
and I get this error
ssh: connect to host 192.168.0.55 port 22: Connection refused
Now try logging into the machine, with "ssh 'email@example.com'", and check in:
to make sure we haven't added extra keys that you weren't expecting.
Anyway, it didn't work either.
Good news is I solved it by using scp to copy it over to the server and then doing a cat id.rsa.pub >> .ssh/authorized_keys
Has anyone had issues using ssh-copy-id in the past?