LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


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

Rep: Reputation: 0
Autologon


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
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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 (id_dsa.pub).

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 id_dsa.pub 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
VictorLemar
LQ Newbie
 
Registered: May 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
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.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux

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