Warning: Identity file /User/Hello_Kitty22/Downloads/myAmazonkey.pem not accessible: No such file or directory. 101 3 Are you allowed to use the command chmod and chown after you do dzdo su - on the remote server If so, you can change the ownership or permissions of the remote directory into which you are trying to copy the files. if you need copy local file to server (specify port ) scp -P 3838 /the/source/file . After that you can create a new PowerShell session: s New-PSSession -HostName 137.117.136.159 -UserName Thomas You can then simply use the Copy-Item cmdlet to copy the file to the specific session: Copy-Item. Only solution which allows the use of scp -3 from and to servers with ssh listeners on different ports. Keep in mind that in both cases, we had to use. user: user defaults to your current, local username - it can be left out if that is the correct user name in both the source and destination. In this case, we have copied files from a remote server 5.252.161.46 to our local directory local-file-directory. Warning: Identity file myAmazonKey.pem not accessible: No such file or directory.īoth my myAmazonkey.pem and phpMyAdmin-3.4. are in Downloads, so then I tried scp -i /Users/Hello_Kitty22/Downloads/myAmazonKey.pem /Users/Hello_Kitty22/Downloads/phpMyAdmin-3.4. the error I got: Im trying to scp a file from a remote server to my local machine. It is really just an ssh enabled version of the standard cp command with the section prior to the : containing the ssh specific information, and the info afterwards pertaining to the cp operation. The command I used was: scp -i myAmazonKey.pem phpMyAdmin-3.4. error I got: I am trying to use my Mac Terminal to scp a file from Downloads (phpMyAdmin I downloaded online) to my Amazon EC2 instance.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |