<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ssh passphrase! in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ssh-passphrase/m-p/3465088#M15948</link>
    <description>ajay,&lt;BR /&gt;&lt;BR /&gt;The most common problem is when you have cut and pasted your key from Windows and it has picked-up some line-break characters. Check that your key is definitely one continuous line.&lt;BR /&gt;&lt;BR /&gt;The "-t rsa" option generates type-2 RSA keys by default.&lt;BR /&gt;&lt;BR /&gt;Check the permissions of your ~/.ssh directory and all the files in it. SSH will refuse the key unless it is considered to be secure.&lt;BR /&gt;&lt;BR /&gt;Check also that when you ssh into your target system that it knows you by the same hostname as that shown next to the key. If not the key will also be rejected.</description>
    <pubDate>Wed, 19 Jan 2005 02:53:06 GMT</pubDate>
    <dc:creator>Andrew Cowan</dc:creator>
    <dc:date>2005-01-19T02:53:06Z</dc:date>
    <item>
      <title>ssh passphrase!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-passphrase/m-p/3465086#M15946</link>
      <description>&lt;BR /&gt;case 1.&lt;BR /&gt;[user@localhost .ssh]$ssh-keygen -t rsa1&lt;BR /&gt;[user@localhost .ssh]$cat identity.pub &amp;gt; authorized_keys&lt;BR /&gt;[user@localhost .ssh]$chmod 644 authorized_keys&lt;BR /&gt;&lt;BR /&gt;thats it on the server side.&lt;BR /&gt;then download identity(private key file) to my windows client machine.&lt;BR /&gt;then from windows box---&amp;gt;open putty--&amp;gt;username=user,hostname=mylinuxmachineip and rsakey(identity)&lt;BR /&gt;&lt;BR /&gt;it works.it is asking for "passphrase key" when the moment i connect to my linuxbox from windows thru putty&lt;BR /&gt;i guess i generated rsa key ssh version is 1.&lt;BR /&gt;&lt;BR /&gt;case 2:&lt;BR /&gt;[user@localhost .ssh]$ ssh-keygen -t rsa&lt;BR /&gt;[user@localhost .ssh]$ cat id_rsa.pub &amp;gt; authorized_keys2&lt;BR /&gt;[user@localhost .ssh]$ chmod 644 authorized_keys2&lt;BR /&gt;&lt;BR /&gt;then download id_rsa(private key file) to my windows client machine.&lt;BR /&gt;then from windows box---&amp;gt;open putty--&amp;gt;username=user,hostname=mylinuxmachineip and rsakey(id_rsa)&lt;BR /&gt;&lt;BR /&gt;then iam getting this error.&lt;BR /&gt;Sent username "user"&lt;BR /&gt;Trying public key authentication.&lt;BR /&gt;No passphrase required.&lt;BR /&gt;Couldn't load public key from C:\WINDOWS\Desktop\id_rsa.&lt;BR /&gt;user@localhost.localdomain's password:&lt;BR /&gt;&lt;BR /&gt;i think i am trying to generate rsa key for SSH version 2.&lt;BR /&gt;i want to use SSH2 with passphrase login.&lt;BR /&gt;&lt;BR /&gt;please anybody help me.&lt;BR /&gt;&lt;BR /&gt;thanks in advance.&lt;BR /&gt;ajay.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2005 01:21:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-passphrase/m-p/3465086#M15946</guid>
      <dc:creator>ajay_34</dc:creator>
      <dc:date>2005-01-18T01:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: ssh passphrase!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-passphrase/m-p/3465087#M15947</link>
      <description>Something strange about what you do :&lt;BR /&gt;Using Putty, you should generate keys on windows machine using PuTTYgen, then send your public key to remote host (and add it to authorized_keys file).&lt;BR /&gt;&lt;BR /&gt;Have you set up sshd_config and ssh_config files ? Have you generated system wide keys ?&lt;BR /&gt;&lt;BR /&gt;I use the following :&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;file sshd_config&lt;BR /&gt;&lt;BR /&gt;Port 22&lt;BR /&gt;Protocol 2,1&lt;BR /&gt;HostKey /etc/ssh/ssh_host_key&lt;BR /&gt;HostKey /etc/ssh/ssh_host_rsa_key&lt;BR /&gt;HostKey /etc/ssh/ssh_host_dsa_key&lt;BR /&gt;ServerKeyBits 1024&lt;BR /&gt;LoginGraceTime 600&lt;BR /&gt;KeyRegenerationInterval 3600&lt;BR /&gt;PermitRootLogin yes&lt;BR /&gt;IgnoreRhosts yes&lt;BR /&gt;known_hosts for RhostsRSAAuthentication&lt;BR /&gt;StrictModes yes&lt;BR /&gt;X11Forwarding yes&lt;BR /&gt;X11DisplayOffset 10&lt;BR /&gt;PrintMotd yes&lt;BR /&gt;KeepAlive yes&lt;BR /&gt;SyslogFacility AUTHPRIV&lt;BR /&gt;LogLevel INFO&lt;BR /&gt;RhostsAuthentication no&lt;BR /&gt;RhostsRSAAuthentication no&lt;BR /&gt;HostbasedAuthentication no&lt;BR /&gt;RSAAuthentication yes&lt;BR /&gt;PasswordAuthentication yes&lt;BR /&gt;PermitEmptyPasswords no&lt;BR /&gt;Subsystem       sftp    /usr/libexec/openssh/sftp-server&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;file ssh_config&lt;BR /&gt;&lt;BR /&gt; Host *&lt;BR /&gt;   ForwardX11 yes&lt;BR /&gt;   IdentityFile ~/.ssh/identity&lt;BR /&gt;   IdentityFile ~/.ssh/id_dsa&lt;BR /&gt;   IdentityFile ~/.ssh/id_rsa&lt;BR /&gt;   Port 22&lt;BR /&gt;   Protocol 2,1&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;&lt;BR /&gt;Then launch following commands as root (enter passphrases when asked for) :&lt;BR /&gt;&lt;BR /&gt;ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -t rsa1&lt;BR /&gt;ssh-keygen -b 1024 -f /etc/ssh/ssh_host_rsa_key -t rsa&lt;BR /&gt;ssh-keygen -b 1024 -f /etc/ssh/ssh_host_dsa_key -t dsa&lt;BR /&gt;ssh-keygen -b 1024 -t rsa1&lt;BR /&gt;ssh-keygen -b 1024 -t rsa&lt;BR /&gt;ssh-keygen -b 1024 -t dsa&lt;BR /&gt;&lt;BR /&gt;then I send my public key to /root/.ssh by ftp and append it to authorized_keys.&lt;BR /&gt;&lt;BR /&gt;Now I can connect root with ssh and passphrase authentication.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2005 05:58:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-passphrase/m-p/3465087#M15947</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2005-01-18T05:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: ssh passphrase!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-passphrase/m-p/3465088#M15948</link>
      <description>ajay,&lt;BR /&gt;&lt;BR /&gt;The most common problem is when you have cut and pasted your key from Windows and it has picked-up some line-break characters. Check that your key is definitely one continuous line.&lt;BR /&gt;&lt;BR /&gt;The "-t rsa" option generates type-2 RSA keys by default.&lt;BR /&gt;&lt;BR /&gt;Check the permissions of your ~/.ssh directory and all the files in it. SSH will refuse the key unless it is considered to be secure.&lt;BR /&gt;&lt;BR /&gt;Check also that when you ssh into your target system that it knows you by the same hostname as that shown next to the key. If not the key will also be rejected.</description>
      <pubDate>Wed, 19 Jan 2005 02:53:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-passphrase/m-p/3465088#M15948</guid>
      <dc:creator>Andrew Cowan</dc:creator>
      <dc:date>2005-01-19T02:53:06Z</dc:date>
    </item>
  </channel>
</rss>

