Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 9,110
Rep:
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.
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?
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 9,110
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.