SSH: AuthorizedKeysFile
Hi,
I need to login a linux machine using python. We have codebase to use ssh to login into a device say Device1. I did the following to the device to make ssh successful. scp id_dsa.pub engineering@<Device1>:/inbound telnet <Device1> #use the OS account credentials to log in Device1 #> sudo bash -l root #> cat /inbound/id_dsa.pub >> /app/authorized_keys2 root #> /etc/init.d/sshd stop root #> /etc/init.d/sshd start root #> exit Device1 #> exit My question, is there any specific location where I should keep authorized_keys2 in linux machine. Or do I need to add any line in ssh config to look for authorized_keys |
Hi,
Google will help you here! This is a common procedure. http://www.cyberciti.biz/faq/ssh-pas...uthentication/ Hope this help!. -Kaustubh |
Thanks Kaustubh.
|
All times are GMT -5. The time now is 04:08 PM. |