LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-12-2008, 07:34 AM   #1
shishirkotkar
Member
 
Registered: Sep 2007
Posts: 83

Rep: Reputation: 15
ssh login without password


i have an LTSP network...
i want to try local applications...ie execute the application on the thin client rather than on on the LTSP server

my thin clients host name is ws101
LTSP server linux- 75hv

To do so i followed following procedure on the LTSP server

1. Add this line to lts.conf

LOCAL_APPS = Y

This forces workstations to start the ssh daemon when they boot.

2. To enable login in on the workstation without a password we did this:

first generate as root a DSA key
> ssh-keygen -q -t dsa -f /root/.ssh/id_dsa
Create a directory .ssh in /opt/ltsp/i386/root/
> mkdir /opt/ltsp/i386/root/.ssh
> chmod 700 /opt/ltsp/i386/root/.ssh
Copy the public dsa file
> cp /root/.ssh/id_dsa.pub /opt/ltsp/i386/root/.ssh/authorized_keys
> chmod 600 /opt/ltsp/i386/root/.ssh/authorized_keys

Questions

Now to try password less ssh login what am i suppose to do??
What i did was from the thin client i gave command "ssh root@ws101"
after i do this it asks me for root@ws101's password...

Do i have to do any configurration changes in ssh_config or sshd_config??
 
Old 04-12-2008, 09:04 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Here's my passwordless loging tute:
Code:
On the server:
ssh-keygen -f /root/.ssh/identity.silas -t dsa
rsync -va /root/.ssh/identity.silas.pub root@silas:/root/.ssh/
The above lines you run on the backup server, and then you go to silas and you run:
cat /root/.ssh/identity.silas.pub >> /root/.ssh/authorized_keys
chmod 640 /root/.ssh/authorized_keys
rm -f /root/.ssh/identity.silas.pub
Then test passwordless logins from server to silas by typing this at the server's prompt:
ssh -o"BatchMode yes" -o"user root" silas -i /root/.ssh/identity.silas
silas is the client ... adjust accordingly
 
Old 04-12-2008, 04:27 PM   #3
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Or, for a more complete explanation that won't trip you up if something is slightly different with your setup, take a look at

http://sial.org/howto/openssh/publickey-auth/

I've relied on the howto's on this site for a number of things, including ssl certificates, ssh, etc.
 
  


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
SSH login not working following password change CaptainReboot Linux - Software 14 03-20-2008 06:41 AM
ssh login without password centos1986 Linux - Security 1 05-01-2007 07:45 AM
SSH Login with no password mperkel Linux - Security 3 01-16-2007 08:42 AM
ssh login without password for only one user zhjim Linux - Server 4 11-21-2006 04:31 PM
how to deny password login in the ssh? please u2911 Linux - Security 4 07-02-2004 12:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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