slogin instead of telnet. It is
a lot safer and more functional too.
ssh and slogin for
connection to the SP:
.ssh in your
$HOME both on the SP and on the Ships
machines. That directory must be readable and
executable to you only.
$ ssh-keygenThis command will generate your keys for you and will store the result on three files in the
.ssh directory:
cat -v to see what's inside.
~/.ssh/authorized_keys on
the SP.
ssh. This file is not
an ASCI file.
identity.pub from the Ships cluster
to the SP.
~/.ssh/authorized_keys,
e.g.,
$ cat identity.pub >> ~/.ssh/authorized_keys
identity.pub from the SP to
~/.ssh/authorized_keys on the Ships Cluster.
slogin from the Ships cluster:
$ ssh-agent bashor
$ ssh-agent tcshdepending on your personal preference. This will spawn a shell, which will run under the
ssh-agent.
$ ssh-addYou will be asked to type your pass phrase, which you have defined earlier when calling
ssh-keygen.
This pass phrase can be very long. A nice thing
about using ssh-agent is that you only
have to type it once.
ssh-agent thusly, issue the command:
$ xterm -bg white -ls -sb -sl 300 -n sp20 -T sp20 -e slogin sp20 &If everything has been set up correctly, you should now get a shell in that xterm that runs on node sp20 of the SP. You will not be asked for a password. Your
ssh-agent takes
care of that.
ssh daemon running on the SP will set up
appropriate socket connections, entries in
the .Xauthority file, and will define your
DISPLAY environmental variable, so that it will
point to an appropriate socket.
All communication that goes through that socket is
encrypted!
sshd on the SP issue
the commands:
$ xclock & $ xterm -bg white -ls -sb -sl 300 -n xterm@sp20 -T xterm@sp20 &You will see a clock and an xterm appear on your display. The communication between your machine in the laboratory and the SP that is redirected to both windows is encrypted, and cannot be captured easily by network sniffing.
ssh takes a little work, once
it's done the system is considerably easier to use
than telnet or even rsh. To begin with
the DISPLAY environmental variable and the corresponding
entries in .Xauthority are set up automatically.