Your UPDATE'd trace is consistent with a passphrase-protected private key. hadn't thought about looking in the logs on the host machine. I had created a new key specifically for this task and named it 'rsa_id_nopass.pub' and i am wondering if the '_nopass' part makes a difference. Page 1 of 2 1 2 > Search this Thread 06-06-2007, 10:46 AM #1 lefty.crupps Member Registered: Apr 2005 Location: Minneap USA Distribution: Debian, Mepis, Sidux Posts: 470 check over here
Make sure /home/git/.ssh/authorized_keys is owned by git. Also check the /etc/ssh/sshd_config file. share|improve this answer edited Aug 28 '14 at 11:42 Gilles 377k726911136 answered Apr 17 '12 at 15:28 Rob 2,979198 10 Thank you very much for pointing out restorecon. Why do internet forums tend to prohibit responding to inactive threads? http://unix.stackexchange.com/questions/36540/why-am-i-still-getting-a-password-prompt-with-ssh-with-public-key-authentication
option to see what is happening) If server still asks for password then you gave smth. chown -R ~ usernamehere chgrp -R ~/.ssh/ user =============================================== 7. We have done this kind of thing many times before and truly believe the ssh set up to be a real pain. How to return signed distance from DistanceMatrix?
ssh-copy-id -i /home/username/.ssh/id_rsa.pub [email protected] Update The log said debug3: Not a RSA1 key file /home/oracle/.ssh/id_rsa.. Note: ssh-copy-id appends the keys to the remote-host's .ssh/authorized_key. logging ssh [email protected]_name will work only for default id_rsa so here is 2nd trap for you need to ssh -i path/to/key_name [email protected] (use ssh -v ... Authentications That Can Continue: Publickey,gssapi-keyex,gssapi-with-mic,password The problem is that the only way you can find this problem is to see where it looks.
The /home/mpiuser/.ssh file is shared among all the nodes so just doing the keygen on the master to these files should be working. worked perfect just needed to edit path to my key 2 etel MOD September 19, 2012 The DigitalOcean control panel SSH Keys are only for the root user. A's .ssh folder permissions: -rw------- 1 root root 13530 2011-07-26 23:00 known_hosts -rw------- 1 root root 403 2011-07-27 00:35 id_rsa.pub -rw------- 1 root root 1675 2011-07-27 00:35 id_rsa -rw------- 1 root Was Adi Shankaracharya’s Parakaya Pravesha to learn Kamashastra Dharmic?
The key fingerprint is: 35:9f:e7:81:ed:02:f9:fd:ad:ef:08:c6:4e:19:76:b1 [email protected] The key's randomart image is: +--[ RSA 2048]----+ | | | | | o . | | . + + o | | S o Ssh Asking For Password Everytime ssh localhost should log me in without asking for the password. On the other one, it was a bit more stubborn. So, the answer is to amend the sshd_config file to look in all users .ssh folders.
share|improve this answer answered Feb 18 '13 at 14:21 user133220 31 1 No, you don't... –psusi May 23 '13 at 1:45 add a comment| Your Answer draft saved draft Does any organism use both photosynthesis and respiration? Ssh No Password Prompt [email protected]$ ssh-agent $SHELL [email protected]$ ssh-add -L The agent has no identities. Authentication Refused: Bad Ownership Or Modes For Directory How could I create a believable Tree World, in which the Trees would float in the oceans, they would grow on surface of water, horizontally The Art of Word Shaping In
debug1: Connection established. http://philgiebler.com/for-password/ssh-without-a-password-not-working.html Check with the "getenforce" command. debug2: key_type_from_name: unknown key type '-----BEGIN' debug3: key_read: missing keytype debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: Are you new to LinuxQuestions.org? Ssh Force Prompt For Password
What is wrong in this arithmetic with looping? I still get a password prompt on ssh. share|improve this answer edited Feb 26 at 14:26 muru 71.6k13130182 answered Mar 7 '12 at 12:48 tohuwawohu 4,14111430 By default all SSH client configuration (/etc/ssh/ssh_config) on Debian/Ubuntu systems already this content jeenam View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by jeenam 06-06-2007, 03:15 PM #4 lefty.crupps Member Registered: Apr 2005 Location: Minneap
EDIT: On the destination machine(s), of course. We Did Not Send A Packet, Disable Method Now you have two machines with ssh-key (public-key) enabled login. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community.
Not the answer you're looking for? Which security measures make sense for a static web site? Ensure it's commented out or on the default of %h/.ssh/authorized_keys. Authentications That Can Continue: Publickey,password The authentication part of /etc/ssh/sshd_config file is # Authentication: LoginGraceTime 120 PermitRootLogin yes StrictModes yes RSAAuthentication yes PubkeyAuthentication yes #AuthorizedKeysFile %h/.ssh/authorized_keys # Don't read the user's ~/.rhosts and ~/.shosts files I'm
Thanks. –adriandz Jul 4 '12 at 1:26 8 For the second part, it's not neccesary to make it recursive, just doing the chmod go-wrx foobar is enough. I have followed instruction for changing permissions: Below is the result if I do ssh -v localhost debug1: Reading configuration data /home/john/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for So we had to go one step further. http://philgiebler.com/for-password/ssh-key-password-not-working.html you should use ssh-copy-id -i path/to/key_name.pub [email protected]_name 3.
ssh share|improve this question edited Feb 26 at 14:25 muru 71.6k13130182 asked Mar 7 '12 at 12:34 Luis Dalmolin 276134 Where do you put ypur public? At last it worked!. I had existing keys from previous droplets that were shown in the "Add SSH Keys (Optional)" section of the Create Droplet web interface. If so, for your first ssh session you will have to provide a password.
Share it with others to increase its visibility and to get it answered quickly. PubkeyAuthentication should be set to yes There is also the AuthorizedKeysFile directive which determines the path where the authorized keys should be located. After adding it everything works fine. debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /root/.ssh/identity ((nil)) debug2: key: /root/.ssh/id_rsa (0x7f1581f23a50) debug2: key: /root/.ssh/id_dsa ((nil)) debug3: Wrote 64 bytes for a total of 1127 debug1: Authentications that can continue: publickey,password debug3:
Check the contents of /var/log/auth.log on the server to find the issue why key authentication is skipped at all. Adding this comment as in my case, I usually realize my mistake after I checked the debug and all the permissions plus config files #:o< –lliseil Sep 17 at 21:48 add Proof Binomial Coefficient Identity What could cause humanity to migrate from land to water? I've checked the permissions of the ~/ssh/ folder and seems to be normal.
When using the vi editor, use shift-j to join the lines and erase the extra space in the key string. Let's start over again, and check every step: FROM CLIENT - Generate key: ssh-keygen -t rsaPublic and private key (id_rsa.pub and id_rsa) will be automatically stored in the ~/.ssh/ directory.Setup will Is there a way to turn this on? –Steve Robbins Oct 11 '13 at 18:48 1 Logs might be in /var/log/secure if you don't have a /var/log/auth.log –CoverosGene Jul 17 Server commands: # rm -rf ~/.ssh Local commands: # ssh-copy-id [email protected] # where
By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. lefty.crupps View Public Profile View LQ Blog View Review Entries View HCL Entries Visit lefty.crupps's homepage! If you are stuck with DSA keys, you can re-enable support locally by updating your sshd_config and ~/.ssh/config files with lines like so: PubkeyAcceptedKeyTypes=+ssh-dss share|improve this answer answered Apr 29 at