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!

Monday, August 12, 2013

Secure Copy to a Different Port

At times you need to change the order in which services like ssh run on its default port for security reasons.  This in effect will impact your scp as well.  Here is the syntax for it.

$ scp -P port_number  /some_path_to_a_file @Ip_address

Cheers!

Sunday, August 11, 2013

Password Generator

If in any case you needed to create phrases of passwords.  This is the likely key:  http://goo.gl/aJD7Kv