Blog Archives

SSH error: Too many authentic authentication failures

This error occurs, when there are multiple known hosts and ssh command is unable to capture private key for specific host. Solution: You have to specify host and private ssh key in ~/.ssh/config file as shown below: You can tell

Tagged with:
Posted in amazon, bitbucket, Github, ssh

Connect to server using ssh and make password free enviornment

Connect to ssh server: $ ssh serverip -l username Enter user password: username@serverip’s password: change password command: $ passwd Password Free environment: Generate ssh-key: cd ~/.ssh ssh-keygen -t rsa append string in authorized_keys file[1]: ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host username@remote-host’s password:

Tagged with: ,
Posted in ssh, Ubuntu, Uncategorized

ERROR: Repository not found. fatal: The remote end hung up unexpectedly, Permission denied (publickey)

ERROR: Repository not found. fatal: The remote end hung up unexpectedly Quick Steps: SSH_AUTH_SOCK=0 exec ssh-agent bash ssh-add ~/.ssh/id_rsa Detailed Insight Steps: 1. Run this command SSH_AUTH_SOCK=0 2. Then Run this command ssh-add -l You will see Could not open

Tagged with: , , , , , , , ,
Posted in Github, github, ssh

Ubunut command to upload file on ssh/scp

For Amazon EC2: On your local machine, move to the location where file exists which you want to upload Run scp command  scp -i ~/.ssh/mykey.pem myzipped_folder.zip  ubuntu@ec2-xx-xx-xx-xxx.us-west-2.compute.amazonaws.com:~/.  Above command parts are mentioned below, change according to your server: scp -i

Tagged with:
Posted in ssh

download File or Folder from ssh server

On your “local system” run this command scp ssh_username@ssh_server_url:file_name_or_folder_path destination_folder example: scp appatrip@admin.cms.appatrip.com:/var/lib/phpMyAdmin/save/appatrip.sql ./

Tagged with: , , ,
Posted in ssh
StackOverFlow
Categories
Archives