3

I'm on a Windows machine using PuTTY to ssh into my schools server. From there I need to slogin -XY machine1 and then slogin -XY machine2.

Ideally, I'd like to use WinSCP to connect and transfer files. I know I can do this by using two copies of PuTTY, one to ssh into the server and create a proxy, and the second PuTTY to connect to the proxy and login to machine1 and create a second proxy. I can then use WinSCP to connect to the proxy server and login to machine2...

Is there a simpler way of doing this?

2

You can use MobaXterm: it has a graphical sftp function like WinSCP, but it also allows you to go through your machine hops automatically. They call it "SSH bouncing".

You just have to
- download MobaXterm from here: http://mobaxterm.mobatek.net/download-home-edition.html
- Click on "New session" and choose "ssh"
- Specify your first machine name or IP address in the "SSH bouncing (connect through a gateway ssh server).

1

Are machines 1 and 2 unix based? If so, couldn't you just use Unix scp? You wouldn't be able to use winscp to transfer files between two unix based systems anyway.

From source machine,

scp -rp user@hostname:destination_directory /path/to/files

You haven't made it clear exactly where from and where to you want to transfer the files.

  • yes machines 1 and 2 are unix based. I am wanting to transfer files from my windows pc to the machine2. – Mike Sep 20 '12 at 5:09
  • Well, you could copy the files into the server first on winscp and then 'scp -rp' to transfer them from the server to machine – Jay Sep 20 '12 at 5:18
  • @Jay WinSCP supports SCP, as does PuTTY (pscp -scp, all other SCP params should be the same) – JW0914 Oct 4 at 11:50
0

WinSCP has direct support for one hop.
See the Tunnel page of its Advanced site settings dialog.

For the other hop (the first of the two), you can use plink in "local proxy command" feature.


The configuration will look like:

  • Depending on the SSH server being utilized, it may be required to load the 1st SSH server's key into Pageant manually, as I know I have to do so in PuTTY for certain SSH servers to allow the multi-hop to authenticate successfully to the first server before going on to the next, else the multi-hop to to the second server won't begin (with these specific SSH servers) – JW0914 Oct 4 at 11:46
  • 1
    @JW0914 Good point. I've edited my answer to cover that too. – Martin Prikryl Oct 4 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.