Difference between revisions of "Ssh"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 14: | Line 14: | ||
= possible problems = | = possible problems = | ||
+ | == Remote host identification has changed == | ||
;Symptom: | ;Symptom: | ||
When trying to log in via ssh you may get a message like this: | When trying to log in via ssh you may get a message like this: | ||
Line 36: | Line 37: | ||
;Solution: | ;Solution: | ||
$ ssh-keygen -R ''hostname'' | $ ssh-keygen -R ''hostname'' | ||
+ | |||
+ | == ssh -X does not work == | ||
+ | If ssh -X works, but you still do not get the graphical display from your remote machine, check /etc/ssh/sshd_config. There must be a line | ||
+ | X11Forwarding yes | ||
= Related = | = Related = | ||
ssh-related topics: | ssh-related topics: | ||
* [[passwordless login]] | * [[passwordless login]] |
Revision as of 10:55, 1 August 2010
ssh is a command to log in over the network to another computer.
Contents
Send graphical output to ssh user
ssh -l user server -X xclock &
port forwarding
ssh username@server -L localport:remoteserver:remoteport
ssh verbose
ssh -v user@server or -vv, -vvv
possible problems
Remote host identification has changed
- Symptom
When trying to log in via ssh you may get a message like this:
tweedleburg:~ # ssh root@192.168.0.107 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 32:78:25:83:d8:a6:de:ad:6a:0b:99:5e:05:e5:7c:e7. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in /root/.ssh/known_hosts:11 RSA host key for 192.168.0.107 has changed and you have requested strict checking. Host key verification failed.
- Reason
This means the key of the computer that you try to reach has changed.
- Solution
$ ssh-keygen -R hostname
ssh -X does not work
If ssh -X works, but you still do not get the graphical display from your remote machine, check /etc/ssh/sshd_config. There must be a line
X11Forwarding yes
Related
ssh-related topics: