ssh from windows to Linux m/c without password

View: New views
5 Messages — Rating Filter:   Alert me  

ssh from windows to Linux m/c without password

by kapila :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

I have the article @ http://archive.lug.boulder.co.us/Week-of-Mon-20001225/007451.html on SSH between Windows and Linux
I followed all the steps but still its asking me for password.

>>ssh -v -l ....
>>
OpenSSH_4.5p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to llpfbuild [10.192.139.150] port 22.
debug1: Connection established.
debug1: identity file /cygdrive/c/Documents and Settings/llpfuser/.ssh/identity
type -1
debug1: identity file /cygdrive/c/Documents and Settings/llpfuser/.ssh/id_rsa ty
pe -1
debug1: identity file /cygdrive/c/Documents and Settings/llpfuser/.ssh/id_dsa ty
pe -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.6.1p2
debug1: match: OpenSSH_3.6.1p2 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.5
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'llpfbuild' is known and matches the RSA host key.
debug1: Found key in /cygdrive/c/Documents and Settings/llpfuser/.ssh/known_host
s:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interacti
ve
debug1: Next authentication method: publickey
debug1: Trying private key: /cygdrive/c/Documents and Settings/llpfuser/.ssh/ide
ntity
debug1: Trying private key: /cygdrive/c/Documents and Settings/llpfuser/.ssh/id_
rsa
debug1: Trying private key: /cygdrive/c/Documents and Settings/llpfuser/.ssh/id_
dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interacti
ve
debug1: Next authentication method: password
llpfuser@llpfbuild's password:




Can anyone please help me on this? It would be nice pleasure to me.
As I am trying this thin since 2 days.

Re: ssh fron windows to Linux m/c without password

by Franck Vervial :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

It seems to be than ssh doesn't find your private key. Are you sure to have
a private key in
/cygdrive/c/Documents and Settings/llpfuser/.ssh/ directory ?
(A file named id_rsa or id_dsa or identity).
If yes, check the rights on this file (700 -rwx------ ), the same
rights have to be on the
.ssh directory.
You have to verify too that your private key is not password protected
(don't type anything when asked for a password when you generate the
keys with ssh-keygen).

Hope this helps

2008/2/20, kapila <kapila.kohli@...>:

>
> I have the article @
> http://archive.lug.boulder.co.us/Week-of-Mon-20001225/007451.html on SSH
> between Windows and Linux
> I followed all the steps but still its asking me for password.
>
> >>ssh -v -l ....
> >>
> OpenSSH_4.5p1, OpenSSL 0.9.8e 23 Feb 2007
> debug1: Connecting to llpfbuild [10.192.139.150] port 22.
> debug1: Connection established.
> debug1: identity file /cygdrive/c/Documents and
> Settings/llpfuser/.ssh/identity
> type -1
> debug1: identity file /cygdrive/c/Documents and
> Settings/llpfuser/.ssh/id_rsa ty
> pe -1
> debug1: identity file /cygdrive/c/Documents and
> Settings/llpfuser/.ssh/id_dsa ty
> pe -1
> debug1: Remote protocol version 1.99, remote software version
> OpenSSH_3.6.1p2
> debug1: match: OpenSSH_3.6.1p2 pat OpenSSH_3.*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_4.5
> debug1: SSH2_MSG_KEXINIT sent
> debug1: SSH2_MSG_KEXINIT received
> debug1: kex: server->client aes128-cbc hmac-md5 none
> debug1: kex: client->server aes128-cbc hmac-md5 none
> debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
> debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
> debug1: Host 'llpfbuild' is known and matches the RSA host key.
> debug1: Found key in /cygdrive/c/Documents and
> Settings/llpfuser/.ssh/known_host
> s:1
> debug1: ssh_rsa_verify: signature correct
> debug1: SSH2_MSG_NEWKEYS sent
> debug1: expecting SSH2_MSG_NEWKEYS
> debug1: SSH2_MSG_NEWKEYS received
> debug1: SSH2_MSG_SERVICE_REQUEST sent
> debug1: SSH2_MSG_SERVICE_ACCEPT received
> debug1: Authentications that can continue:
> publickey,password,keyboard-interacti
> ve
> debug1: Next authentication method: publickey
> debug1: Trying private key: /cygdrive/c/Documents and
> Settings/llpfuser/.ssh/ide
> ntity
> debug1: Trying private key: /cygdrive/c/Documents and
> Settings/llpfuser/.ssh/id_
> rsa
> debug1: Trying private key: /cygdrive/c/Documents and
> Settings/llpfuser/.ssh/id_
> dsa
> debug1: Next authentication method: keyboard-interactive
> debug1: Authentications that can continue:
> publickey,password,keyboard-interacti
> ve
> debug1: Next authentication method: password
> llpfuser@llpfbuild's password:
>
>
>
>
> Can anyone please help me on this? It would be nice pleasure to me.
> As I am trying this thin since 2 days.
> --
> View this message in context: http://www.nabble.com/ssh-fron-windows-to-Linux-m-c-without-password-tp15579612p15579612.html
> Sent from the SSH (Secure Shell) mailing list archive at Nabble.com.
>
>


--
Sauvons la planète : http://www.criseclimatique.fr/
PGP Key ID: 5201BB4B , FPR: 5081 2A2F 0233 E6D9 E321 1538 D574 E36F 5201 BB4B

Re: ssh fron windows to Linux m/c without password

by Greg Wooledge :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

On Tue, Feb 19, 2008 at 04:23:28PM -0800, kapila wrote:
>
> I have the article @
> http://archive.lug.boulder.co.us/Week-of-Mon-20001225/007451.html on SSH
> between Windows and Linux
> I followed all the steps but still its asking me for password.

http://wooledge.org/mywiki/SshKeys might be helpful.

Re: ssh fron windows to Linux m/c without password

by John Bond :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

go to the folowing directory

c:\Documents and Settings\llpfuser\.ssh\

In that folder there there should be a two files with the same name
but one will have the extention .pub (i.e. public key).  you need to
copy the contents of this file into the .ssh/authorized_keys file of
the user directory you want to log in as.  e.g. if you want to log in
as bob it will probably be /home/bob/.ssh/authorized_keys on the
machine you are trying to access

Re: ssh fron windows to Linux m/c without password

by Amar Kulo :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

On Wed, Feb 20, 2008 at 1:23 AM, kapila <kapila.kohli@...> wrote:

>
>  I have the article @
>  http://archive.lug.boulder.co.us/Week-of-Mon-20001225/007451.html on SSH
>  between Windows and Linux
>  I followed all the steps but still its asking me for password.
>
>  >>ssh -v -l ....
>  >>
>  OpenSSH_4.5p1, OpenSSL 0.9.8e 23 Feb 2007
>  debug1: Connecting to llpfbuild [10.192.139.150] port 22.
>  debug1: Connection established.
>  debug1: identity file /cygdrive/c/Documents and
>  Settings/llpfuser/.ssh/identity
>  type -1
>  debug1: identity file /cygdrive/c/Documents and
>  Settings/llpfuser/.ssh/id_rsa ty
>  pe -1
>  debug1: identity file /cygdrive/c/Documents and
>  Settings/llpfuser/.ssh/id_dsa ty
>  pe -1
>  debug1: Remote protocol version 1.99, remote software version
>  OpenSSH_3.6.1p2
>  debug1: match: OpenSSH_3.6.1p2 pat OpenSSH_3.*
>  debug1: Enabling compatibility mode for protocol 2.0
>  debug1: Local version string SSH-2.0-OpenSSH_4.5
>  debug1: SSH2_MSG_KEXINIT sent
>  debug1: SSH2_MSG_KEXINIT received
>  debug1: kex: server->client aes128-cbc hmac-md5 none
>  debug1: kex: client->server aes128-cbc hmac-md5 none
>  debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
>  debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
>  debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
>  debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
>  debug1: Host 'llpfbuild' is known and matches the RSA host key.
>  debug1: Found key in /cygdrive/c/Documents and
>  Settings/llpfuser/.ssh/known_host
>  s:1
>  debug1: ssh_rsa_verify: signature correct
>  debug1: SSH2_MSG_NEWKEYS sent
>  debug1: expecting SSH2_MSG_NEWKEYS
>  debug1: SSH2_MSG_NEWKEYS received
>  debug1: SSH2_MSG_SERVICE_REQUEST sent
>  debug1: SSH2_MSG_SERVICE_ACCEPT received
>  debug1: Authentications that can continue:
>  publickey,password,keyboard-interacti
>  ve
>  debug1: Next authentication method: publickey
>  debug1: Trying private key: /cygdrive/c/Documents and
>  Settings/llpfuser/.ssh/ide
>  ntity
>  debug1: Trying private key: /cygdrive/c/Documents and
>  Settings/llpfuser/.ssh/id_
>  rsa
>  debug1: Trying private key: /cygdrive/c/Documents and
>  Settings/llpfuser/.ssh/id_
>  dsa
>  debug1: Next authentication method: keyboard-interactive
>  debug1: Authentications that can continue:
>  publickey,password,keyboard-interacti
>  ve
>  debug1: Next authentication method: password
>  llpfuser@llpfbuild's password:
>
>
>
>
>  Can anyone please help me on this? It would be nice pleasure to me.
>  As I am trying this thin since 2 days.
>  --
>  View this message in context: http://www.nabble.com/ssh-fron-windows-to-Linux-m-c-without-password-tp15579612p15579612.html
>  Sent from the SSH (Secure Shell) mailing list archive at Nabble.com.
>
>
Hello

Download putty, best free telnet/ssh/serial client from
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Download puttygen and generate public and private key, without
password if you want.

Log in to ssh box and edit file ~user/.ssh/authorized_keys with your
favorite editor and copy

~user is your home directory and if file does not exist create it.

Open putty and create new ssh session and edit connection->ssh->auth
where you can select private key.

Save session and login with your credentials without pass.

Regards
Amar Kulo