Scp /home/ec2-user not a regular file




















Improve this answer. Multimedia Mike Multimedia Mike It also occurs if you're not awake yet and you have your source and destination inverted and you're trying to copy a non-existent file from your destination to your source I am facing the issue with symlinks too.

Add a comment. Kenster Kenster 20k 21 21 gold badges 72 72 silver badges 97 97 bronze badges. This really helped me To copy a directory with scp, you have to supply the "-r" flag — wruckie.

If this is the case, here is what you want to do: First, compress the folder. Ivan Borshchov Ivan Borshchov 2, 4 4 gold badges 29 29 silver badges 58 58 bronze badges. You can use the recursive -r flag to copy the files. Alagie F. Nget Alagie F. Nget 81 5 5 bronze badges. Necoras 5, 2 2 gold badges 18 18 silver badges 45 45 bronze badges. Faunus Faunus 1.

This is incorrect, the destination can be a folder. If you are trying to transfer an entire directory, use --recurse flag. NOT -r.

It doesn't work. Archulan Rajakumaran Archulan Rajakumaran 1 1 gold badge 4 4 silver badges 12 12 bronze badges. I am sorry Archulan, but this is not true: Please go to linux. The doc in link is dated by April 14, , and my local man page from November 30, has a same description meaning up to this date — Ivan Borshchov.

Sign up or log in Sign up using Google. It turns out that placing scp options in different order than the one stated by helloV won't make it work. Stupidly late addendum : To avoid specifying the private key every time, just add to the.

Solution found here Hope this helps! Bruno Belotti Bruno Belotti 2, 1 1 gold badge 29 29 silver badges 28 28 bronze badges. Hope this helps to someone :. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Walter Tross 11k 2 2 gold badges 34 34 silver badges 60 60 bronze badges. Castelmager Castelmager 2 2 silver badges 7 7 bronze badges. You saved my day brother — Mayukh Sarkar. You should be on you local machine to try the above scp command. Knowing the words makes it easier to remember the command. If there is no -i , than you do not need a. Forrest Forrest 1, 1 1 gold badge 19 19 silver badges 15 15 bronze badges.

Mustafa Kahraman Mustafa Kahraman 91 1 1 silver badge 4 4 bronze badges. Prasad Khode 6, 11 11 gold badges 42 42 silver badges 57 57 bronze badges. Prafull Prafull 7 7 silver badges 16 16 bronze badges.

Send file from Local to Server: scp -i. Viraj Wadate Viraj Wadate 3, 24 24 silver badges 26 26 bronze badges. This just worked for me. I used a combination of two other answers to this question. Paul Roub Norman Davis Norman Davis 63 1 1 silver badge 4 4 bronze badges.

This worked for me while the other answers for some reason had no effect. Not sure what the problem was. Ubuntu Vatsal Shah Vatsal Shah 1, 16 16 silver badges 21 21 bronze badges. From Amazon : For Amazon Linux, the user name is ec2-user. For RHEL, the user name is ec2-user or root.

For Ubuntu, the user name is ubuntu or root. For Centos, the user name is centos. For Fedora, the user name is ec2-user. For SUSE, the user name is ec2-user or root. Otherwise, if ec2-user and root don't work, check with your AMI provider. Umar Asghar Umar Asghar 2, 1 1 gold badge 27 27 silver badges 26 26 bronze badges.

Can you simply ssh with that key to your AWS host? Bryan Stenson Bryan Stenson 1 1 1 bronze badge. Yes, I can ssh with that key to my AWS host. In fact, the problem I am having is, I am on the Amazon host through ssh , so when I do cd, I can only see the files on my Amazon server, not my local Mac Downloads directory where I saved my pem file. I can only cd to my local Mac Downloads directory when I exit my ec2 host.

But if I exit to my ec2 host, I couldn't upload the file phpMyAdmin to my ec2 server.



0コメント

  • 1000 / 1000