![]() | ||
|
SecurityNormally, NSC systems are accessed remotely through SSH (Secure Shell). This protects your communication from eavesdroppers. However, you can still make mistakes (e.g. using a weak password) that expose both you and NSC to unnecessary risks. Pick a good passwordWhen you receive a account on an NSC system, you are asked to set a new password on it. Please follow these two rules when choosing your password:
Tip: Pick a sentence that is easy to remember, and use the initials of the words as your password. Make sure it is at the very least eight characters long. For example, the Shakespeare quote "Three score and ten I can remember well" yields the password Tsa10Icrw. (But please don't use Tsa10Icrw as your real password, since you now can find it in Google...) Tip 2: Even better, use a truly random password. For example, on most Unix-like systems you can run the command openssl rand -base64 12 to print a random sixteen character password. Tip 3: By all means, write your password down. It is better to have a strong password written on a piece of paper in your wallet than to have a weak password that you can remember in your head. Damage controlWhen a system is compromised and passwords stolen, the thing that causes the most grief is when the stolen password can be used for more than one system. A user that has accounts on many different computers and gets his/her shared password stolen will allow the intruders to easily cross administrative domains and further compromise other systems. To login to a system and then continue from that system to a third (as illustrated below) should be avoided. ![]() Detect and report suspicious activityWhen logging into a system, please read the "last login" information and verify that it matches your last login to the system. If it does not match, someone else might be using your account. Example: $ ssh x_makro@neolith.nsc.liu.se x_makro@neolith.nsc.liu.se's password: Last login: Wed Apr 28 10:36:09 2010 from ming.nsc.liu.se Welcome to Neolith! /Neolith admin, support@nsc.liu.se [x_makro@neolith1 ~]$ logout If you can't verify the information or for some other reason suspect that someone else is using your account, YOU MUST contact support@nsc.liu.se as soon as possible. Checklist:
Making life easier with public keysThere is an alternative to traditional passwords. This method of authentication is known as key-pair or public-key authentication. While a password is simple to understand (the secret is in your head until you give it to the ssh server which grants or denies access), a key-pair is somewhat more complicated. A key-pair is as the name suggests a pair of cryptographic keys. One of the keys is called the private key (this one should be kept secure and protected with a pass phrase) and a public key (this one can be passed around freely as the name suggests). After you have created the pair, you have to copy the public key to all systems to which you wish to establish a ssh-connection. The private key should be kept as secure as possible and protected with a good pass phrase. On your laptop/workstation you use a key-agent to hold the private key while you work. Pro
Short description of SSH public-key authentication(see also Chapter 4 in SSH tips, tricks & protocol tutorial by Damien Miller)
ssh-agent in WindowsYes, this actually works just fine in Windows as well, using the Putty ssh client and the Winscp program. Putty has an agent program called "Pageant". On the page http://www.unixwiz.net/techtips/putty-openssh.html you can find instructions for creating a key-pair and setting up ssh agent and agent forwarding. |