3.8. Login via SSH

Sometimes it might be necessary to login to Coyote Linux when there is no web browser available, or if you prefer to use the command line. Then you can use ssh to connect to Coyote Linux.

If you are logged in to a machine in the Skolelinux/Debian-edu network, then you use

ssh -l root 10.0.2.1

to login to Coyote Linux

If you are outside of the Skolelinux/Debian-edu network, you must replace the value 10.0.2.1 with the appropriate value as seen for network card WAN in i. In this case, it would be

ssh -l root 192.168.1.10

You will be met by almost the same choices as when logged into the Coyote Linux web administrator, but presented in a text-based menu.


                Coyote Linux Gateway -- Configuration Menu


  1) Edit main configuration file         2) Change system password
  3) Edit rc.local script file            4) Custom firewall rules file
  5) Edit firewall configuration          6) Edit port forward configuration

  c) Show running configuration           f) Reload firewall
  r) Reboot system                        w) Write configuration to disk

  q) quit                                 e) Exit
  ----------------------------------------------------------------------------
  Selection:

You have almost the same options as when logged into the Coyote Linux web administrator, see Section 3.7 for a brief description of the different choices.

When choosing q) quit you will end up at the command line in Coyote Linux if you need to go back to the Coyote Linux Menu, then type menu and press ENTER.

If you see this when trying to login to Coyote Linux:


klaus@tjener:~$ ssh 10.0.2.1 -l root
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
34:b7:a3:9b:06:4c:e2:30:1b:0d:03:45:7b:22:b7:dd.
Please contact your system administrator.
Add correct host key in /skole/tjener/home0/klaus/.ssh/known_hosts to get rid of this message.
Offending key in /skole/tjener/home0/klaus/.ssh/known_hosts:27
RSA host key for 10.0.2.1 has changed and you have requested strict checking.
Host key verification failed.

Then it is most likely because you had previously logged into a different machine with the IP address 10.0.2.1, or you have changed a network card in Coyote Linux, or it is really a man-in-the-middle attack. The solution is to remove the offending key, in this case it's line number 27, in file /skole/tjener/home0/klaus/.ssh/known_hosts.