Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-06-2013, 02:42 AM   #1
LQ Newbie
Registered: Feb 2013
Posts: 12

Rep: Reputation: Disabled
SSH: AuthorizedKeysFile

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 engineering@<Device1>:/inbound
telnet <Device1> #use the OS account credentials to log in
Device1 #> sudo bash -l
root #> cat /inbound/ >> /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
Old 02-06-2013, 02:54 AM   #2
LQ Newbie
Registered: Jan 2013
Location: India
Distribution: RedHat,Fedora
Posts: 11

Rep: Reputation: Disabled

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

Hope this help!.

1 members found this post helpful.
Old 02-06-2013, 04:57 AM   #3
LQ Newbie
Registered: Feb 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks Kaustubh.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Centralized authorized_keys (AuthorizedKeysFile) for sshd bortek Linux - Security 10 03-12-2010 06:59 PM
[SOLVED] Centralized authorized_keys (AuthorizedKeysFile) for sshd bortek Linux - Security 2 03-11-2010 06:29 PM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 01:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration