Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.


  Search this Thread
Old 06-06-2008, 03:19 AM   #1
LQ Newbie
Registered: May 2008
Posts: 11

Rep: Reputation: 0

Can anyone tell me if it's possible to logon automatically a predefined user without need to input username and password (in DSL)?
Old 06-07-2008, 12:12 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,780
Blog Entries: 15

Rep: Reputation: 1629Reputation: 1629Reputation: 1629Reputation: 1629Reputation: 1629Reputation: 1629Reputation: 1629Reputation: 1629Reputation: 1629Reputation: 1629Reputation: 1629
Logon from where to where?

Within a network it is often done using ssh "trusts".

Essentially you create an ssh key for the user on the system you want to login from then add its public key to the authorized_keys files on the host yu want to login to.

To generate on from system:
-Login to that user on that system
-Run "ssh-keygen -t dsa" to generate dsa key (type "man ssh-keygen" for more dtails). It generates two files in $HOME/.ssh which are the private key (id_dsa) and the public key (

To create trust on the to system:
-Login as the user (supplying password first time)
-cd $HOME/.ssh (mkdir $HOME/.ssh if the directory doesn't already exist)
-"vi authorized_keys"
add the contents of from the "from" system to this file.

To login with the trust:
-Login to as the user on the from system
-Type ssh tosystem
If the trust is working it shouldn't prompt for a password.

Note: ssh is "secure" shell so expects to be "secure". You need to insure the home directory of both users is writable only by the user itself and that $HOME/.ssh is only writable/readable by the user itself. Otherwise it won't work.
Old 06-09-2008, 01:52 AM   #3
LQ Newbie
Registered: May 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Originally Posted by jlightner View Post
Logon from where to where?
Local login.
Thank you

Last edited by VictorLemar; 06-09-2008 at 01:56 AM.


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
how to autologon in redhat linux ragurampvsrnb Linux - Newbie 1 03-12-2008 12:46 AM
Problems setting up autologon for Suse9.3 & WindowsMaker steve_f60 Linux - General 1 11-10-2005 02:41 PM
fedora 3 autologon zchoyt Linux - Software 3 04-14-2005 12:00 AM
autologon + redhat Enterprise 2.1 mehesque Linux - General 0 06-14-2004 11:23 AM
Autologon on Fluxbox - how? immer Slackware 15 04-13-2004 04:01 PM > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux

All times are GMT -5. The time now is 10:09 PM.

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