I am currently working on a windows 10 laptop. I have installed the ubuntu subsystem (instead of PUTTY) in it to access the remote server. When I launch the ubuntu subsystem from my windows start menu, it opens with a command prompt user@PC0BCD-PC
The remote server is a Linux server as well.
In addition, I am connected to a VPN. If I don't connect to the VPN, I will not be able to login to the remote server.
So, what I would like to do is transfer the file from my local windows ubuntu subsystem to the remote server
So, i tried the below command and got an error as shown below
scp /mnt/c/Users/test/Downloads/DC_cond.csv [email protected]:/home/test/cond_occ.csv
ssh: connect to host 172.XX.YYY.Z port 22: Resource temporarily unavailable
lost connection
/mnt/c/Users/....
indicates the path in my local system whereas [email protected]
indicates my remote server address.
when I type telnet 172.XX.YYY.Z 22
in my WSL, it just says Trying 172.XX.YYY.Z
whereas when I SSH into remote server and type telnet 172.XX.YYY.Z 22
, it produces output for telnet command
Am unable to transfer files from remote server to local system as well.
Can help me with this?