Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 15
ssh login without password

i have an LTSP network...
i want to try local 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


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/ /opt/ltsp/i386/root/.ssh/authorized_keys
> chmod 600 /opt/ltsp/i386/root/.ssh/authorized_keys


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: Fedora, Gentoo, Ubuntu (all servers at work are openSUSE)
Posts: 6,931

Rep: Reputation: 128Reputation: 128
Here's my passwordless loging tute:
On the server:
ssh-keygen -f /root/.ssh/identity.silas -t dsa
rsync -va /root/.ssh/ 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/ >> /root/.ssh/authorized_keys
chmod 640 /root/.ssh/authorized_keys
rm -f /root/.ssh/
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
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,194

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

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


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
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 > Forums > Linux Forums > Linux - Software

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

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