Thursday, August 15, 2013

ssh-copy-id -i on a different port

If it ever occurred to you that a changed has been done to your ssh config particularly the default port of 22 into something else.  Then you need to implement password-less ssh.  Then you got this:

ssh: connect to host 121.97.35.82 port 22: Connection refused

Solution:

ssh-copy-id -i  file_path "username@some_ipaddress -p port_number"

Cheers!

No comments:

Post a Comment