scp files from local to remote machine error: no such file or directory

前端 未结 8 552
有刺的猬
有刺的猬 2020-12-23 13:26

I want to be able to transfer a directory and all its files from my local machine to my remote one. I dont use SCP much so I am a bit confused.

I am connected to my

相关标签:
8条回答
  • 2020-12-23 13:51

    Be sure the folder from where you send the file does not contain space !

    I was trying to send a file to a remote server from my windows machine from VS code terminal, and I got this error even if the file was here.

    It's because the folder where the file was contained space in its name...

    0 讨论(0)
  • 2020-12-23 13:53

    You also need to make sure what is in the .bashrc file of the user.

    I've also got this ridiculous error because I put cd and ls commands in there, as it was mean to let them see the current files & directories when the user is has logged in from ssh.

    0 讨论(0)
提交回复
热议问题