Ubuntu – scp failing with vast.ai

scpsftpsshUbuntu

I'm using vast.ai at the moment, and I've used my container through the site to generate some images that I'd like to download. I've tried to use SCP with my public key (which works 100% of the time through SSH), but it's not letting me use SCP or SFTP to pull a file from the remote server to my system. Every time I try, it displays the regular welcome message that shows up when I use SSH, then it promptly kicks me out.

Is there anything I can do to get those files? The command I'm using for SSH is: ssh -p 11977 root@ssh5.vast.ai -L 8080:localhost:8080, and then I'm authenticating with my public key.

Thanks for any help.

Best Answer

scp -P <port> <local file> root@<ip>:<dir>

Try with a capital "-P" for the port flag.