What does this SCP error mean and how can I make SCP work?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
console-afOMU5@my_ip_address's password:
Entering CT
Unable to get term attr: Invalid argument
What does this mean but more importantly what do I need to do to transfer the files?
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.
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 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"?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.