Re: SCP via SSH tunnel works, then not, then works again
From: Darren Tucker (dtucker_at_gate.dodgy.net.au)
Date: 08/24/05
- Next message: Darren Tucker: "Re: Forcing new password at login (w/o requiring an old password) (sudo related)"
- Previous message: Darren Tucker: "Re: Losing my LD_LIBRARY_PATH"
- In reply to: elwinter: "SCP via SSH tunnel works, then not, then works again"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 24 Aug 2005 14:32:45 GMT
On 2005-08-23, elwinter <elwinter@verizon.net> wrote:
> I am using SSH to perform local port forwarding from my local machine
> (L) to a remote machine (RA) behind a firewall at a remote site
> (legitimately :^)). The port forwarding is done through an account
> (gwaccount) on a gateway machine (GW).
[...]
> scp -P 2222 gwaccount@localhost:remote_filename local_filename
> This works to remote host RA without a problem.
Add "-o HostKeyAlias=RA" to this.
[...]
> 5. Finally, when I try to copy the same file from host RB:
> scp -P 2222 gwaccount@localhost:remote_filename local_filename
Add "-o HostKeyAlias=RB" to this.
> the command fails, and I get error messages about the remote host
> identification changing, and referring me to item 2 in the local
> known_hosts file, which is 'localhost'.
As far as ssh is concerned, "localhost:2222" is the same host both times
and it gets rather upset when it sees the host key has changed.
> Any help would be greatly appreciated. And I'll gladly help you with
> any physics/astronomy homework in return :^).
I'll keep this in mind should I ever study either physics or astronomy :-)
--
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.
- Next message: Darren Tucker: "Re: Forcing new password at login (w/o requiring an old password) (sudo related)"
- Previous message: Darren Tucker: "Re: Losing my LD_LIBRARY_PATH"
- In reply to: elwinter: "SCP via SSH tunnel works, then not, then works again"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|