LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH: AuthorizedKeysFile (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-authorizedkeysfile-4175448821/)

venu147 02-06-2013 01:42 AM

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

Kaustubh5@ymail.com 02-06-2013 01:54 AM

Hi,

Google will help you here! This is a common procedure.

http://www.cyberciti.biz/faq/ssh-pas...uthentication/

Hope this help!.

-Kaustubh

venu147 02-06-2013 03:57 AM

Thanks Kaustubh.


All times are GMT -5. The time now is 04:08 PM.