Trying to connect to a second machine via Advanced->SCP->Shell
Hi,
Recently, I have reinstalled Ubuntu on a remote machine. To connect to the machine from home, I have to ssh to a gateway and from there I have to ssh to the local machine I want. Therefore, in the gateway, I have write a file
When I use the terminal on the gateway, there is no problem with that file.
I have read the FAQ https://winscp.net/eng/docs/message_unexpected_close but I don't understand what is the problem exactly. Any idea about that?
Recently, I have reinstalled Ubuntu on a remote machine. To connect to the machine from home, I have to ssh to a gateway and from there I have to ssh to the local machine I want. Therefore, in the gateway, I have write a file
ssh_to_rtx3080
with the content of ssh rtx3080
. I give the path to the file in WinSCP->Advanced->SCP->Shell. But as you can see in the picture, I get an error that server connection is closed.
When I use the terminal on the gateway, there is no problem with that file.
$ cat ssh_to_rtx3080 ssh rtx3080 $ ./ssh_to_rtx3080 mahmood@rtx3080's password: Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.19.0-41-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/pro Expanded Security Maintenance for Applications is not enabled. 45 updates can be applied immediately. To see these additional updates run: apt list --upgradable Enable ESM Apps to receive additional future security updates. See https://ubuntu.com/esm or run: sudo pro status *** System restart required *** Last login: Thu Jul 4 09:29:56 2024 from 157.193.244.32 mahmood@rtx3080:~$