LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-16-2009, 02:28 AM   #1
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Wink how login to remote machine with out password?


hi,
how to login to remote machine without password? after we use
Code:
useradd test
and we use
Code:
passwd test
. i.e the /etc/shadow file should not contain password of test. i tried using rsa i didn't get.
I tried like this.
machine1:
Code:
ssh-keygen -t rsa -f .ssh/id_rsa
scp id_rsa.pub machine2@example.com
Code:
(i have taken blank password)
machine2:
useradd test
cp id_rsa.pub /home/test/.ssh/.authorized_keys
from machine1 when i am trying to do ssh it prompting for rsa password, if cancle it, it is prompting for machine1 password. should we modify any thing in /etc/ssh/sshd_config file? if so what should we change?

Last edited by bkcreddy17; 02-16-2009 at 04:32 AM.
 
Old 02-16-2009, 03:39 AM   #2
thierrys
LQ Newbie
 
Registered: Feb 2009
Distribution: RedHat, Fedora, CentOS
Posts: 27

Rep: Reputation: 18
google for "How To Set Up SSH With Public-Key Authentication"
 
Old 02-16-2009, 04:30 AM   #3
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Original Poster
Rep: Reputation: 15
Tank you thierrys.
after adding user, you should not add password, then use rsa and try to login. it doesn't happen.
 
  


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
Writing to a remote machine without password fw12 Linux - General 1 11-30-2007 10:26 PM
How to login as root in the remote machine with NX client tanveer Linux - Software 5 11-18-2007 12:27 PM
Bypassing password in remote login Sulman Shah Programming 3 01-17-2007 09:25 AM
remote login no password FC2 dretzloff Linux - Security 1 01-08-2005 05:11 PM
Remote X login on RH 9.0 machine abhatia Linux - Networking 2 01-09-2004 07:06 PM


All times are GMT -5. The time now is 02:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration