LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-21-2014, 08:21 PM   #1
ankitpandey
Member
 
Registered: Jan 2012
Location: Mumbai
Posts: 63

Rep: Reputation: Disabled
Passwordless authentication not working


Hi All,

I am trying to create passwordless authentication but it is not working. Host server is RHEL 5.1 and remote server is solaris 10. The user i am logged in is common user or i should say NIS user. So when i create key files in .ssh directory, it automaticaly reflects in my remote server home directory, so i didn't copied anything from host to remote server as it is common mount. Please suggest how to get this working.

Below is what i tried.

Code:
$ hostname
servername
$ pwd
/home/UserName/.ssh
$ ssh-keygen -t rsa -N '' -f ./id_rsa
Generating public/private rsa key pair.
Your identification has been saved in ./id_rsa.
Your public key has been saved in ./id_rsa.pub.
The key fingerprint is:
64:38:3e:e6:46:8c:74:50:92:76:08:fc:cc:8c:64:7d UserName@servername
$ cat id_rsa.pub >> authorized_keys
$ ls -lad .ssh
drwx------ 2 UserName UserName 4096 Mar 22 00:30 .ssh
$ ls -la .ssh
total 28
drwx------  2 UserName UserName 4096 Mar 22 00:30 .
drwxrwxr-x 13 UserName UserName 8192 Mar 22 00:15 ..
-rwx------  1 UserName UserName  404 Mar 22 00:26 authorized_keys
-rwx------  1 UserName UserName 1675 Mar 22 00:24 id_rsa
-rwx------  1 UserName UserName  404 Mar 22 00:24 id_rsa.pub
-rwx------  1 UserName UserName  679 Mar 22 00:56 known_hosts
$
And then i am trying to ssh to remotehost, it is asking password. Please sugest.

Code:
$ ssh UserName@RemoteHostName
Thanks.
 
Old 03-23-2014, 11:29 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
check the links in my signature,
 
  


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
allow passwordless root login with publickey authentication hs.extmail Linux - Security 5 10-31-2012 03:05 PM
Passwordless authentication SSH UmaSantharam Linux - Software 11 12-08-2011 10:07 PM
[SOLVED] SSH passwordless authentication purusrhce@gmail.com Linux - Server 4 12-14-2010 05:19 AM
Passwordless ssh configuration with Active Directory authentication rsussman Linux - Software 1 06-05-2009 11:10 AM
passwordless authentication sherimm Linux - Software 17 12-10-2008 11:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:27 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