LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 02-16-2001, 11:52 PM   #1
RyanP
LQ Newbie
 
Registered: Feb 2001
Posts: 3

Rep: Reputation: 0

I've done a bit of research both here and elsewhere concerning the following and haven't found a clear-cut answer, but I apologize in advance if this has already been answered in the archives.

I am fairly novice with both PAM and OpenSSH. I just installed OpenSSH on my RedHat Linux box, copied sshd.pam -> /etc/pam.d/sshd, started sshd, and was able to login to a different account on the system via ssh. Can I be sure that all data is being transfered encrypted when logged in via ssh? The reason I question that is because I have read so much about the ~/.ssh/identity[.pub] files when reading about SSH and I didn't create any of these files. Is PAM authentication a completely separate option from using RSA/DSA (I think that's what the identity[.pub] files represent)? This is what I'm unclear on.

Thanks in advance for any help clearing this up.

Ryan
 
Old 02-17-2001, 11:03 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 9,110

Rep: Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401
Yes they are totally different. PAM, or Pluggable Authentication Modules, is a library that enables the local system administrator to choose how individual applications authenticate users. RSA and DSA are encryption algorithms.
 
Old 02-17-2001, 11:08 AM   #3
RyanP
LQ Newbie
 
Registered: Feb 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Ok, so then I do need to set up the ~/.ssh/identity[.pub] files to ensure that data is encrypted? Even after I do have this set up, how do I verify that everything is being tranfered encrypted?
 
Old 02-17-2001, 11:35 AM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 9,110

Rep: Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401
NO, SSH is always encrypted by default. You can set it up to fall back to unencrypted, but it will still give you a warning. The indentity.pub file is used when you want to setup public key pair authentication. In this case you would not be prompted for a password. This is from the man page:

Quote:
ssh implements the RSA authentication protocol automatically. The user creates his/her RSA key pair by running ssh-keygen(1). This stores the private key in $HOME/.ssh/identity and the public key in $HOME/.ssh/identity.pub in the user's home directory. The user should then copy the identity.pub to $HOME/.ssh/authorized_keys in his/her home directory on the remote machine (the authorized_keys file corresponds to the conventional $HOME/.rhosts file, and has one key per line, though the lines can be very long). After this, the user can log in without giving the password.
 
Old 02-17-2001, 12:08 PM   #5
RyanP
LQ Newbie
 
Registered: Feb 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Ok, thanks for clearing that up.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
passwordless OpenSSH with MIT-Kerberos and PAM dbalsige Linux - Software 1 11-12-2009 12:12 PM
VNC with PAM authentication? make Linux - Software 2 06-07-2005 02:45 AM
Publickey authentication problem with OpenSSH Tularis Linux - Networking 2 03-17-2004 11:50 AM
PAM authentication failed schatoor Linux - Software 0 02-18-2004 02:26 PM
openssh/PAM auth problem crippler909 Linux From Scratch 1 06-08-2003 11:51 AM


All times are GMT -5. The time now is 07:45 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration