Re: shell ssh over a ssh tunnel
- From: Darren Tucker <dtucker@xxxxxxxxxxxxxxxx>
- Date: 26 Nov 2006 13:06:35 GMT
On 2006-09-19, Sylvain Ferriol <sferriol@xxxxxxx> wrote:
i have a ssh tunnel available between internet/intranet network. but i
can not login the gateway. only forward is available.
how can i open a shell on a sshd server inside intranet throw the ssh
gateway.
ssh -N -L 22:sshd_intranet:22 sshd_gateway
it do not work, ssh localhost returns:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
You have a preexisting entry for localhost in the known_hosts file.
Try:
ssh -o HostKeyAlias=sshd_intranet localhost
If it works then put a host entry for it into your ~/.ssh/config file, eg
Host sshd_intranet
Hostname localhost
HostKeyAlias sshd_intranet
CheckHostIP no
Failing that you could check out the NoHostAuthenticationForLocalhost
option in ssh_config(5), but HostKeyAlias is the better solution.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
.
- Prev by Date: Re: Use of ClientAliveInterval and ClientAliveCountMax to terminate sftp
- Next by Date: SSH client that shows multiple drives?
- Previous by thread: Re: ssh_exchange_identification uClinux problem
- Next by thread: SSH client that shows multiple drives?
- Index(es):
Relevant Pages
|
|