LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-19-2011, 04:17 AM   #1
amitk.gupta09
Member
 
Registered: Aug 2011
Location: pune
Posts: 37

Rep: Reputation: Disabled
ssh-keygen


i am trying to remote login on hardware board without giving our password of user on local system,i only want to give my passpharas .for this i generate a key pair on my local system and transfer .pub(public key file) to remote system.

but when i am executing this command

ssh amitg@ip-address

promt come for asking password instead pf passpharase.

give me a solution...
 
Old 09-19-2011, 04:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
"give me a solution"??? You might want to say please or thank you in future.

usually this is a permissions issue, ensure ~/.ssh is 700 and ~/.authorized_keys is 600
 
Old 09-19-2011, 04:32 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
On the remote system, the public key has to be appended to .ssh/authorized_keys. Besides, on both remote and local, the permissions must not be too permissive, else ssh will ignore the keys. I recommend mode 600 for authorized_keys, 700 for .ssh, and no more than 751 for ~.

Yves.
 
Old 09-20-2011, 02:08 AM   #4
amitk.gupta09
Member
 
Registered: Aug 2011
Location: pune
Posts: 37

Original Poster
Rep: Reputation: Disabled
thanks theYinYeti and acid_kewpie
 
  


Reply



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] What happened to ssh-keygen? Lenard Spencer Slackware 2 02-27-2011 07:27 PM
ssh-keygen issue salimshahzad Linux - Newbie 7 12-20-2010 12:42 PM
SSH not working after ssh-keygen due to lack of entropy grob115 Linux - Security 8 08-28-2010 11:33 AM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
How to ssh-keygen? Baran Linux - Networking 5 04-26-2005 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:20 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
Open Source Consulting | Domain Registration