scp (secure copy) to ec2 instance without password
I figured it out. I had the arguments in the wrong order. This works: scp -i mykey.pem somefile.txt root@my.ec2.id.amazonaws.com:/
I figured it out. I had the arguments in the wrong order. This works: scp -i mykey.pem somefile.txt root@my.ec2.id.amazonaws.com:/
You need to scp something somewhere. You have scp ./styles/, so you’re saying secure copy ./styles/, but not where to copy it to. Generally, if you want to download, it will go: # download: remote -> local scp user@remote_host:remote_file local_file where local_file might actually be a directory to put the file you’re copying in. To … Read more
You need to verify the permissions of the authorized_keys file and the folder / parent folders in which it is located. chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys For more information see this page. You may also need to change/verify the permissions of your home directory to remove write access for the group and others. chmod … Read more
I suggest you to do: chmod 400 ~/.ssh/id_rsa It works fine for me.
A solution would be to force the key files to be kept permanently, by adding them in your ~/.ssh/config file: IdentityFile ~/.ssh/gitHubKey IdentityFile ~/.ssh/id_rsa_buhlServer If you do not have a ‘config’ file in the ~/.ssh directory, then you should create one. It does not need root rights, so simply: nano ~/.ssh/config …and enter the lines … Read more
mySQLdb is a python interface for mysql, but it is not mysql itself. And apparently mySQLdb needs the command ‘mysql_config’, so you need to install that first. Can you confirm that you did or did not install mysql itself, by running “mysql” from the shell? That should give you a response other than “mysql: command … Read more
The best way to login to a guest Linux VirtualBox VM is port forwarding. By default, you should have one interface already which is using NAT. Then go to the Network settings and click the Port Forwarding button. Add a new Rule. As the rule name, insert “ssh”. As “Host port”, insert 3022. As “Guest … Read more
Add Identity without Keychain There may be times in which you don’t want the passphrase stored in the keychain, but don’t want to have to enter the passphrase over and over again. You can do that like this: ssh-add ~/.ssh/id_rsa This will ask you for the passphrase, enter it and it will not ask again … Read more
In your terminal, type: scp your_username@remotehost.edu:foobar.txt /local/dir replacing the username, host, remote filename, and local directory as appropriate. If you want to access EC2 (or other service that requires authenticating with a private key), use the -i option: scp -i key_file.pem your_username@remotehost.edu:/remote/dir/foobar.txt /local/dir From: http://www.hypexr.org/linux_scp_help.php
cat ~/.ssh/id_rsa.pub or cat ~/.ssh/id_dsa.pub You can list all the public keys you have by doing: $ ls ~/.ssh/*.pub