What does this SCP error mean and how can I make SCP work?
I'm using CentOS 7. I'm trying to scp some files up to my VPS (using A2Hosting). Although I can SSH just fine, I'm getting this error using SCP that I don't understand
Code:
localhost:tmp davea$ scp -P 7822 ~/Documents/workspace/mydir console-afOMU5@my_ip_address:/tmp |
Have you tried SFTP? SCP is a bit of a kludge, while SFTP is a standard. I believe that there i a way to run CP in FTP protocol format, but I would rather just do SFTP in the first place.
|
are you sure the username is console-afOMU5?
you can also try to prepend 'TERM=dumb'. |
Hi, Yes, I can SSH in using the same port and credentials. I suspect this is because this usernam/epassword is issued through A2Hosting's serial console, which seems to be some kind of temporary session. Not sure why that would prevent SCP but allow SSH, but oh well.
|
I think it's your use of the tilde in the command.
Just sayin'. |
Quote:
Just sayin' The point, though, is somewhat valid since we do not KNOW what shell the OP is using. |
i vaguely remember that scp has problems with expanding commandline arguments. not sure how it does it (circumvent the shell? seems impossible), but so i heard.
maybe "~" is not the same as "$HOME"? interestingly, when i type Code:
scp ~/<Tab><Tab> Code:
scp /home/ondoho Code:
cp ~/<Tab><Tab> just sayin. |
All times are GMT -5. The time now is 11:18 AM. |