LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
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
 
Old 02-06-2013, 02:54 AM   #2
Kaustubh5@ymail.com
LQ Newbie
 
Registered: Jan 2013
Location: India
Distribution: RedHat,Fedora
Posts: 11

Rep: Reputation: Disabled
Hi,

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

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

Hope this help!.

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

Original Poster
Rep: Reputation: Disabled
Thanks Kaustubh.
 
  


Reply


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


All times are GMT -5. The time now is 01:23 AM.

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