<?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 without password but with differenct account in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544994#M17620</link>
    <description>&lt;BR /&gt;There are few observations made in this long output.&lt;BR /&gt;&lt;BR /&gt;* SSH tries to use the file named identity as your key file, this is mentioned so in ssh_config file, please  uncomment it so that SSH will decide on which file to use for private key and public key&lt;BR /&gt;&lt;BR /&gt;* remove spaces before each newly uncommented variable in your configuration file.&lt;BR /&gt;&lt;BR /&gt;* identity file is used if SSH protocol version 1 is being used by server and client, to force the server to deal only with protocol 2 then try with -2 option in ssh.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi</description>
    <pubDate>Tue, 17 May 2005 05:40:59 GMT</pubDate>
    <dc:creator>Gopi Sekar</dc:creator>
    <dc:date>2005-05-17T05:40:59Z</dc:date>
    <item>
      <title>ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544983#M17609</link>
      <description>hi :&lt;BR /&gt;&lt;BR /&gt;     ssh could login without password through the public/private key pair. But if the local account and remote account are different,how to use the pk authentication. Thank you!!&lt;BR /&gt;&lt;BR /&gt;steven chang</description>
      <pubDate>Mon, 16 May 2005 03:26:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544983#M17609</guid>
      <dc:creator>steven chang_1</dc:creator>
      <dc:date>2005-05-16T03:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544984#M17610</link>
      <description>Ok.&lt;BR /&gt;&lt;BR /&gt;To do password-less SSH login's, the remote-user must have an entry in their 'authorized_keys' file that matchines the user you are coming from.&lt;BR /&gt;&lt;BR /&gt;i.e. from:&lt;BR /&gt;&lt;BR /&gt;johnsmith@machine1:&lt;BR /&gt;&lt;BR /&gt;has a key generated in ~/.ssh/id_rsa.pub&lt;BR /&gt;&lt;BR /&gt;The line from here needs to be in:&lt;BR /&gt;&lt;BR /&gt;remoteuser@machine2: ~/.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;SSH doesn't care what user you're coming from or going too (apart from if you omit the user when ssh'n to a machine).&lt;BR /&gt;&lt;BR /&gt;Just remember to 'ssh remoteuser@machine2' and you'll be fine.</description>
      <pubDate>Mon, 16 May 2005 03:39:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544984#M17610</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-05-16T03:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544985#M17611</link>
      <description>now i need root@aptest to oracle@dbtest&lt;BR /&gt;here is the oracle authorized_keys2&lt;BR /&gt;ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA1kbKhVVdEfs8ItqrPoLoyQxTfuUuoYmwU3fbpY6ZTm3dVWJKTxcJvl9wxyIbfs4zLqZOBBogrFi&lt;BR /&gt;Iyq7hkZyPzz1MAJiZCnpco7QCDMv4kNcoWMMEu5CZkznMeUKrQ0AdIcoqmwRdK/E4WhLHZcvdzCZqQ2x7P3+1aOIJHZwjaWU= root@aptest&lt;BR /&gt;&lt;BR /&gt;but use the command &lt;BR /&gt; ssh -l oracle dbtest&lt;BR /&gt;or ssh oracle@dbtest&lt;BR /&gt;sshd would prompt the password request&lt;BR /&gt;if the same authorized_keys2 file in the root .ssh directory , it's ok, no password prompt&lt;BR /&gt;&lt;BR /&gt;steven</description>
      <pubDate>Mon, 16 May 2005 04:05:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544985#M17611</guid>
      <dc:creator>steven chang_1</dc:creator>
      <dc:date>2005-05-16T04:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544986#M17612</link>
      <description>hi :&lt;BR /&gt;&lt;BR /&gt;   I think i need hostbase ssh authentication. Does anybody get the document? Thank you&lt;BR /&gt;&lt;BR /&gt;steven</description>
      <pubDate>Mon, 16 May 2005 04:45:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544986#M17612</guid>
      <dc:creator>steven chang_1</dc:creator>
      <dc:date>2005-05-16T04:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544987#M17613</link>
      <description>Hrm.. 'oracle@dbtest:~/.ssh/known_hosts' exists?&lt;BR /&gt;&lt;BR /&gt;And why are you using 'authorized_keys2' and not just 'authorized_keys' ?</description>
      <pubDate>Mon, 16 May 2005 05:25:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544987#M17613</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-05-16T05:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544988#M17614</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;Passwordless SSH using public/private keys&lt;BR /&gt;&lt;BR /&gt;Including how to set up rsync and unison (syncronisation software)&lt;BR /&gt;Here is a list of the steps that I had to do to get automatic replication of /home/folder1 (or any other folder) on one server to /home/folder2 on another server:&lt;BR /&gt;&lt;BR /&gt;Passwordless SSH&lt;BR /&gt;To get replication working securly you firstly need to be able to connect via SSH without using passwords:&lt;BR /&gt;&lt;BR /&gt;First server setup&lt;BR /&gt;ssh-keygen -t dsa(press enter twice to give a blank password)&lt;BR /&gt;&lt;BR /&gt;cd&lt;BR /&gt;cd .ssh&lt;BR /&gt;vi .configPress "i" to enter insert mode and copy this into the file:&lt;BR /&gt;&lt;BR /&gt;Host remotehost&lt;BR /&gt;User remoteuser&lt;BR /&gt;Compression yes&lt;BR /&gt;Protocol 2&lt;BR /&gt;RSAAuthentication yes&lt;BR /&gt;StrictHostKeyChecking no&lt;BR /&gt;ForwardAgent yes&lt;BR /&gt;ForwardX11 yes&lt;BR /&gt;IdentityFile /home/localuser/.ssh/id_remotehost_dsaDo NOT change the last line - it is supposed to say remotehost (not an actual host name). the remoteuser specify as the other username Now,&lt;BR /&gt;&lt;BR /&gt;:wq(save and exit vi)&lt;BR /&gt;&lt;BR /&gt;vi id_dsa.pubIt should look like this:&lt;BR /&gt;&lt;BR /&gt;ssh-dss AAAA..............v root@HOSTNAMEOFSRV01where there is lots of random letters/numbers where the dots are. Select it all and copy it. Make sure that it is all on one line with no spaces at the start or finish (which will happen if you copy it using putty on windows; test it by pasting it into notepad)&lt;BR /&gt;Tip: To copy from putty on windows select the text from within vi and pres Ctrl + Shift. To paste text enter insert mode and press the right mouse button. (best way would be to copy the file through scp)&lt;BR /&gt;&lt;BR /&gt;Second Server Setup&lt;BR /&gt;cd&lt;BR /&gt;vi .ssh/authorized_keysEnter insert mode (press i) and paste the key, again ensuring that there are no spare newlines or spaces. Save the file and exit vi (press :wq then return, as above)&lt;BR /&gt;&lt;BR /&gt;Testing passwordless SSH&lt;BR /&gt;On the first server, type&lt;BR /&gt;&lt;BR /&gt;ssh -l other_user_name srv02&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naveej&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 May 2005 06:05:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544988#M17614</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-05-16T06:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544989#M17615</link>
      <description>hi :&lt;BR /&gt;&lt;BR /&gt;   I user athorized_keys2 because using"&lt;BR /&gt;ssh-keygen -t rsa" to generate the pubkey/private key pair&lt;BR /&gt;&lt;BR /&gt;steven</description>
      <pubDate>Mon, 16 May 2005 08:07:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544989#M17615</guid>
      <dc:creator>steven chang_1</dc:creator>
      <dc:date>2005-05-16T08:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544990#M17616</link>
      <description>&lt;BR /&gt;So you are saying the same public key works from root login and not from oracle login, correct?&lt;BR /&gt;&lt;BR /&gt;try ssh -vvv oracle@dbtest and paste the output here, let us see whether we can find something from there.&lt;BR /&gt;&lt;BR /&gt;Also one more thing to check is the file permission and ownership of the .authorized_keys2&lt;BR /&gt;&lt;BR /&gt;I believe SSH requires 600 permission for .authorized_keys2, check that out too.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
      <pubDate>Mon, 16 May 2005 09:11:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544990#M17616</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-05-16T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544991#M17617</link>
      <description>hi :&lt;BR /&gt; here is the debug messsage, when I use rsa or dsa, ssh could not find the id_rsa or id_dsa, only could be rsa1, my client is unixware 7.1.1 , I think it's the cypher/decyper problem, but it's still could not use public key through identity.pub&lt;BR /&gt;==============================&lt;BR /&gt;ssh -v tmsap2&lt;BR /&gt;OpenSSH_3.9p1, OpenSSL 0.9.7d 17 Mar 2004&lt;BR /&gt;debug1: Reading configuration data /etc/ssh/ssh_config&lt;BR /&gt;debug1: Connecting to tmsap2 [172.26.33.23] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: identity file /home/oracle/.ssh/identity type 0&lt;BR /&gt;debug1: Remote protocol version 1.99, remote software version OpenSSH_3.4p1&lt;BR /&gt;debug1: match: OpenSSH_3.4p1 pat OpenSSH*&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_3.9p1&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: kex: client-&amp;gt;server aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&amp;lt;1024&amp;lt;8192) sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;BR /&gt;debug1: Host 'tmsap2' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /home/oracle/.ssh/known_hosts:1&lt;BR /&gt;debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interacti&lt;BR /&gt;ve&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Next authentication method: keyboard-interactive&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interacti&lt;BR /&gt;ve&lt;BR /&gt;debug1: Next authentication method: password&lt;BR /&gt;oracle@tmsap2's password:&lt;BR /&gt;debug1: Authentication succeeded (password).&lt;BR /&gt;debug1: channel 0: new [client-session]&lt;BR /&gt;debug1: Entering interactive session.&lt;BR /&gt;&lt;BR /&gt;steven</description>
      <pubDate>Mon, 16 May 2005 10:02:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544991#M17617</guid>
      <dc:creator>steven chang_1</dc:creator>
      <dc:date>2005-05-16T10:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544992#M17618</link>
      <description>&lt;BR /&gt;I am really could not find anything from this output, i am sorry. Can you please try with debug level 3 (ssh -vvv oracle@host). Also check the /var/log/messages and /var/log/secure on the SSH server to find out is there any error messages reported there.&lt;BR /&gt;&lt;BR /&gt;Also did you change the permission of the file  .authorized_keys2 on the server and see whether it helped. &lt;BR /&gt;&lt;BR /&gt;I dont think this is related to cipher problem or server problem because you said it works fine when you put this file in /root/ directory and login as root.&lt;BR /&gt;&lt;BR /&gt;Also, do not add the log output to message body, rather attach it as attachment.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi</description>
      <pubDate>Mon, 16 May 2005 10:14:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544992#M17618</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-05-16T10:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544993#M17619</link>
      <description>hi :&lt;BR /&gt;&lt;BR /&gt;  here is the v3 for dsa trace and rsa1 trace, i don't know why client sending public key authetication , and the server not responding. Therefore, ssh would choose password authentication. This is the same user for client and server. The previous situation I mentioned before is for tow linux system for different user.</description>
      <pubDate>Mon, 16 May 2005 11:42:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544993#M17619</guid>
      <dc:creator>steven chang_1</dc:creator>
      <dc:date>2005-05-16T11:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544994#M17620</link>
      <description>&lt;BR /&gt;There are few observations made in this long output.&lt;BR /&gt;&lt;BR /&gt;* SSH tries to use the file named identity as your key file, this is mentioned so in ssh_config file, please  uncomment it so that SSH will decide on which file to use for private key and public key&lt;BR /&gt;&lt;BR /&gt;* remove spaces before each newly uncommented variable in your configuration file.&lt;BR /&gt;&lt;BR /&gt;* identity file is used if SSH protocol version 1 is being used by server and client, to force the server to deal only with protocol 2 then try with -2 option in ssh.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi</description>
      <pubDate>Tue, 17 May 2005 05:40:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544994#M17620</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-05-17T05:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password but with differenct account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544995#M17621</link>
      <description>You can use ssh -i to point to the key you want to use:&lt;BR /&gt;&lt;BR /&gt;     -i identity_file&lt;BR /&gt;&lt;BR /&gt; Selects a file from which the identity (private key) for RSA or DSA authentication is read.  The default is $HOME/.ssh/identity for protocol version 1, and $HOME/.ssh/id_rsa and $HOME/.ssh/id_dsa for protocol version 2.  Identity files may&lt;BR /&gt;also be specified on a per-host basis in the configuration file.  It is possible to&lt;BR /&gt;have multiple -i options (and multiple identities specified in configuration files).&lt;BR /&gt;</description>
      <pubDate>Tue, 17 May 2005 08:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-without-password-but-with-differenct-account/m-p/3544995#M17621</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2005-05-17T08:44:26Z</dc:date>
    </item>
  </channel>
</rss>

