Authentication by public key for SSH connection

version 0.2, 2011/10/06

Summary

From November 15, 2011, the gateway to go into the gateway server (sshsolar.nro.nao.ac.jp) of Nobeyama Sola Radio Observatory from the outside of National Astronomical Observatory of Japan is available to only public key authentication of ssh (pubkey).

Because the conventional password authentication is in weak the attack from the outside, there are some cases by which accounts are abused by brute force attack actually.

Please write in a public key "only one" at new user registration with the following way. After logging in once, you can add some keys to ~/.ssh/authorized_keys. When inputting some keys by mistake at user registration, only first one is effective.

The making method of new public key pair is as follows. Please make the RSA key of SSH2 and register it.

Note: After login to sshsolar, you can login to the other servers (ex. burst1) by password authentication.

Setting up public key authentication over SSH

  1. How to make your public key of RSA for SSH connection


  2. How to put your public key on sshsolar.nro.nao.ac.jp for SSH connection

  3. At first, please transfer your public key (id_rsa.pub) to sshsolar.nro.nao.ac.jp using "scp" command. Then, please add your public key to ~/.ssh/authorized_keys, as follows.
    [foobar@burst4]$ cat id_rsa.pub >> ~/.ssh/authorized_keys
    
    If there is no ~/.ssh/authorized_keys in your home directory, please rename the id_rsa.pub, as follows
    [foobar@burst4]$ mv id_rsa.pub ~/.ssh/authorized_keys
    [foobar@burst4]$ chmod go-rwx ~/.ssh/authorized_keys
    

Back to the homepage of NSRO