Monday, March 11, 2013

Cygwin SSH tip

if you use ssh-keygen to generate public key, use ssh-copy-id, and get the following msg while logging in remote device,
permission for id_rsa are too open
1. cd .ssh
2. chmod 600 id_rsa known_hosts

if you can not change the permission of id_rsa, try
1. chgrp -r Users id_rsa
2. chmod 600 id_rsa

if you define hostname aliases in SSH config, and get msg
Bad owner or permissions on /home/[username]/.ssh/config
1. chgrp -r Users config
2. chmod 600 config