LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-27-2009, 11:43 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
Easiest way to start SSH without password request, and using the pwd stored in $HOME


What would be the easiest way to start SSH without password request, and using the pwd stored in $HOME
Regards
 
Old 05-27-2009, 11:57 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If the server is configured to use public key authentication, you only need to enter the passphrase (at the client) once a session if you use ssh-agent.

example:
eval $(ssh-agent)
ssh-add

Alternatively, look for the .xsession file your client uses then you start up.
e.g. on SuSE,
/etc/X11/xdm/sys.xsession

Look for this line. Now you just have to enter the passphrase once.
# If ssh is configured and ssh-agent is wanted set "yes"
usessh=yes

You can also have a private key without a passphrase, but that would put the server at risk if the client is stolen, or compromised. Something similar is what happened at Red Hat.
 
Old 05-28-2009, 04:37 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by jschiwal View Post
If the server is configured to use public key authentication, you only need to enter the passphrase (at the client) once a session if you use ssh-agent.

example:
eval $(ssh-agent)
ssh-add

Alternatively, look for the .xsession file your client uses then you start up.
e.g. on SuSE,
/etc/X11/xdm/sys.xsession

Look for this line. Now you just have to enter the passphrase once.
# If ssh is configured and ssh-agent is wanted set "yes"
usessh=yes

You can also have a private key without a passphrase, but that would put the server at risk if the client is stolen, or compromised. Something similar is what happened at Red Hat.
here it my ssh config :
I try to keep it cuz I know it is secured.

Quote:
# Package generated configuration file
# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin no
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

UsePAM yes
 
Old 09-13-2009, 04:13 PM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Hello

I followed this howto, but the security is only based on DNS, thtat's all.

I would like to not to base it on DNS but only on teh mac address
https://help.ubuntu.com/community/Samba/Kerberos

is that possible?

would you have any configuration that u are using and working.?
thanks you
 
Old 09-13-2009, 09:28 PM   #5
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by frenchn00b View Post
Hello

I followed this howto, but the security is only based on DNS, thtat's all.

I would like to not to base it on DNS but only on teh mac address
https://help.ubuntu.com/community/Samba/Kerberos

is that possible?
On a LAN, yes. On the Internet, no. Macs don't normally propagate very far. But the present key exchange method is quite robust and secure (and will remain so until they perfect the quantum computer).

Basing security on Macs is not really secure anyway -- one can temporarily assign any arbitrary Mac to a NIC for various purposes.

Quote:
... the security is only based on DNS, thtat's all
What you say here isn't actually true -- if you have distributed authorization keys to all the communicating computers, and if they are physically secure, than the security isn't based on DNS any more.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh without password for /home shared over NFS sumanc Linux - Server 5 05-15-2009 08:39 AM
remove password request during scripted ssh login? babag Mandriva 4 04-06-2008 02:25 PM
What is stored in /home? Vulpus Linux - Newbie 5 06-17-2006 07:23 AM
script detecting ssh password request jp9999 Linux - Software 1 05-02-2006 02:46 PM
Help! ssh to home desktop is listening but not accepting password vrooje Linux - General 10 01-02-2005 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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