I have tried everything and i have been on this for two days, no progress.  i can access the same server (hadoopmaster) but when i try to copy the key or ssh into the slave (hadoopslave-1) i get the permission denied (publickey) error. Am here to get help.  Because i want to make them to be able to ssh into each other one namenode and two datanodes , i have already installed ambari and trying to setup on ambari on the cluster.     i used ssh -i ~/.ssh/id_rsa -v ubuntu@ec2-54-186-26-168.us-west-2.compute.amazonaws.com   Also tried to copy key but same error message  ssh-copy-id -i $HOME/.ssh/id_rsa.pub ubuntu@hadoopslave-1
75335
I have an instance of an application running in the cloud on Amazon EC2 instance, and I need to connect it from my local Ubuntu. It works fine on one of local ubuntu and also laptop. I got message "Permission denied (publickey)" when trying to access SSH to EC2 on another local Ubuntu. It's so strange to me.  I'm thinking some sort of problems with security settings on the Amazon EC2 which has limited IPs access to one instance or certificate may need to regenerate.  Does anyone know a solution?
11913
I have this command to backup a remote machine. The problem is that I need root rights to read and copy all files. I have no root user enabled for security reasons and use sudo the Ubuntu way. Would I need some cool piping or something to do this?  rsync -chavzP --stats user@192.168.1.2:/ /media/backupdisk/myserverbackup/
117812
I have set up an EC2 instance with ArchLinux for a client, and I am currently in the testing phase.   I am using PuTTY from Windows 8 to SSH into the machine. I have set up the connection profile correctly, and specified the correct key file.   When trying to login, I am presented with the option to choose which user I want to login as. I choose "root" and the connection proceeds with no problem, though I am not asked for the root password.  I want to forbid root logins, but when trying to login as any other user I get from the system:  Server refused our key   Also I get a popup window saying:  Disconnected: No supported authentication methods available (server sent: publickey)   Why is it that I cannot login as any other user? It is very important for me to forbid root logins.   On a side note, is it normal that I am not prompted for the root password?
120674
I am trying to get Juju working on Windows 8 but I am running in to some errors when trying to get juju to see my ssh keys:  C:\Users\username&gt; juju bootstrap error: error parsing environment "azure":     read C:\Users\user\SkyDrive\Documents\Azure\ssh\: The handle is invalid.   I've added a public key I generated with putty to the directory above called azure  My environments.yaml file has this in it:  authorized-keys-path: C:\Users\user\SkyDrive\Documents\Azure\ssh\   Any ideas?
43816
Say I have a public RSA SSH key that looks like:  ssh-rsa ijvoienvejfvmiejnci3onrvejviewlonvcljnrijcnreionv me@machine   If I’m copying this key to share with another machine, do I include the comment at the end (me@machine)? Do I include the header (ssh-rsa)?
22266
I've somehow lost my id_rsa.pub file. I still have my id_rsa file. How do I recover the public key from the private key?  (This question came up after ssh-copy-id was reporting "ERROR: No identities found" while ssh-keygen reported "/root/.ssh/id_rsa already exists". ls ~/.ssh pointed out the problem was having id_rsa but not id_rsa.pub. I found the solution, but it was buried at the bottom of a long post on an Ubuntu support forum.)
15998
I can connect to another Ubuntu machine in my LAN via SSH. On both of then PC's I installed   but from another Ubuntu computer I can not connect to my PC via SSH and I got this error:     Host key verification failed...
69203
We are attempting to speed up the installation of oracle nodes for RAC installation. this requires that we get ssh installed and configured so that it doesn't prompt for a password.  The problem is: On first usage, we are prompted for  RSA key fingerprint is 96:a9:23:5c:cc:d1:0a:d4:70:22:93:e9:9e:1e:74:2f. Are you sure you want to continue connecting (yes/no)? yes   Is there a way to avoid that or are we doomed to connect at least once on every server from every server manually?
79456
I am trying to copy files from one server directly to another, bypassing my local computer.  I did  scp -r usrname@server1.com:~/data/* usrname@server2.com:~/data/ Password:  Host key verification failed. lost connection   Is this even possible? How may I fix it?
20954
I'm using the  for quite a long time; but after exporting my key storage and gpg keys to another machine I see following output:  $ gpg --list-key /home/shved/.gnupg/pubring.gpg ------------------------------ pub   2048R/FA829B53 2015-04-28 uid       [ultimate] Yury Shvedov (shved) &lt;shved@lvk.cs.msu.su&gt; sub   2048R/74270D4A 2015-04-28   My key imported and trusted, but not usable:  pass insert test Enter password for test:  Retype password for test:  gpg: 2048R/FA829B53: skipped: No public key gpg: [stdin]: encryption failed: No public key fatal: pathspec '/home/shved/.password-store/test.gpg' did not match any files   What can I do to use my key again?
119621
No matter what I do I'm stuck with &gt;. How can I enter a new command?  $ chmod -R 600 `/ .ssh &gt;  &gt; chmod &gt; id_rsa.pub &gt;  &gt; sudo chmod 600 ~/ssh/id_rsa     I was trying to sync the master and slave by following a youtube video when I encountered the "permission denied" issue. While trying to resolve it I got stuck with &gt;. Now I can't enter any new command.   Please guide me. I'm a Linux/AWS newbie.
117741
The setup is we have a VPS running Debian Squeeze, and I've set up a shared directory for us to share files.  So far I've followed this guide:    I've also set the umask to 002 correctly (see the comments on that guide), so we can both now create files and directories directly on the server and we both have read/write permissions on them.  The only problem is that a lot of our files are created on our local machines (both running Ubuntu 10.10), and then dumped on the server.  This results in only the creator of the file/directory having write permissions on, and the other member of the group I set up for sharing this folder only having read access.  My next thought would be to change the default umask on our local machines, but it seems a bit extreme to have to do that, and I don't know if it's a security risk.  Can someone tell me if there's a better solution to what I'm trying to achieve, or if this really is the way to go?  Many thanks in advance
18659
The situation: I simply want to be able to access a Synology NAS from an Ubuntu Server with a non-root user.  On the NAS I have this in the exports-file:  /Directory &lt;client-ip&gt;/255.255.255.0(rw,async,no_wdelay,no_root_squash,insecure_locks,sec=sys,anonuid=1003,anongid=1004)   On the Ubuntu-Server in fstab I got this:  &lt;server-ip&gt;:/Directory  /Mountpoint nfs noauto,user,rw 0 0   Now I want to allow UserA, which is used for some automatic processes to mount the share and write to it.  mount /Mountpoint   Mounting as UserA works fine, but I have no permission to even read what's in the directory. As user root I do. Listing the mountpoint folder shows these permissions:  drwxrwx--- 4 UserA root 4096 Sep 17 13:58 Mountpoint   I tried to set the anon-ids in the exports to the ids of UserA, but that didn't help. Making UserA the owner of the folder didn't help either. Is there a simple thing I am missing?  Also: This needs to be an nfs share as it will transfer large amounts of data.  Edit: I would prefer to avoid giving read and write permissions to "others" for security reasons.
45515
I need to use another computer to access my ssh server. This is because a recently implemented vpn at my university doesn't work on my current computer and I have lost access to the server.   I ssh via encrypted ssh keys. Can I copy these keys to the new computer (on which the vpn works). I tried copying the id_rsa and id_rsa.pub files in the ~/.ssh folder but it doesn't recognize the keys and there is no prompt to input a password to decrypt the keys.   EDIT: I can't access the server to generate a new key pair for the new computer and am out of the country so can't physically access it.   Thanks.
17669
I have a local machine which is supposed to make an SSH session to a remote master machine and then another inner SSH session from the master to each of some remote slaves, and then execute 2 commands i.e. to delete a specific directory and recreate it.  Note that the local machine has passwordless SSH to the master and the master has passwordless SSH to the slaves. Also all hostnames are known in .ssh/config of the local/master machines and the hostnames of the slaves are in slaves.txt locally and I read them from there.  So what I do and works is this:  username="ubuntu" masterHostname="myMaster" while read line do      #Remove previous folders and create new ones.     ssh -n $username@$masterHostname "ssh -t -t $username@$line "rm -rf Input Output Partition""     ssh -n $username@$masterHostname "ssh -t -t $username@$line "mkdir -p EC2_WORKSPACE/$project Input Output Partition""       #Update changed files...     ssh -n $username@$masterHostname "ssh -t -t $username@$line "rsync --delete -avzh /EC2_NFS/$project/* EC2_WORKSPACE/$project""  done &lt; slaves.txt    This cluster is on Amazon EC2 and I have noticed that there are 6 SSH sessions created at each iteration which induces a significant delay. I would like to combine these 3 commands into 1 to get fewer SSH connections. So I tried to combine the first 2 commands into   ssh -n $username@$masterHostname "ssh -t -t $username@$line "rm -rf Input Output Partition &amp;&amp; mkdir -p EC2_WORKSPACE/$project Input Output Partition""   But it doesn't work as expected. It seems to execute the first one (rm -rf Input Output Partition) and then exits the session and goes on. What can I do?
106778
I'm trying to connect to another computer in my house via ssh. Both computers have ubuntu and openssh installed. When I run the command "ssh username@ip" on terminal I'm asked for the user's password I'm trying to connect to. I type it but I get this error "Permission denied, please try again." I'm sure the password is correct, then why can't I access?
119856
I set up my ssh stuff with the help of , and it used to work well (I could run hg push without being asked for a passphrase). What could have happened between then and now, considering that I'm still using the same home directory.  $ cat .hg/hgrc  [paths] default = ssh://hg@bitbucket.org/tshepang/bloog  $ hg push Enter passphrase for key '/home/wena/.ssh/id_rsa':  pushing to ssh://hg@bitbucket.org/tshepang/bloog searching for changes ...