12-14-2010
Quote:
debug1: Trying public key: /export/home/sysops/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
debug1: Trying public key: /export/home/sysops/.ssh/id_dsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
debug2: we did not send a packet, disable method
debug1: Next authentication method: keyboard-interactive
kindly double check if you have copied the right public key, from server B, to the authorized_key file in server A. obviously, the key was rejected thus you were prompted for the password. might be wise to just scp the public key to server A than copy and paste it, incase you have done it.
HTH
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all,
i have generated a pair of keys so that i can login via SSH without entering my password.
I am using putty to login. After putting the public key on the server,then logging through putty, i get the message "Server refused our key" on screen. At the same time, /var/log/secure is... (3 Replies)
Discussion started by: new2ss
3 Replies
2. Solaris
Hi Everybody,
Recently i applied patch cluster dated (2009.11.03) for solaris 10 sparc machine(Generic_138888-06)
I successfully applied and rebooted the machine , no errors received. But after patching it was not allowing me to login through ssh while telnet was working fine.Logs showed me ... (11 Replies)
Discussion started by: laxmikant
11 Replies
3. HP-UX
Greetings!
I am trying to perform a passwordless SSH login from a HPUX 11.31 client to a HPUX 11.31 server. Whenever I do a "ssh -l root serverA" from the client, I am prompted for a password. Giving the password, I am able to successfully login. However I am trying to accomplish a... (9 Replies)
Discussion started by: Rob Sandifer
9 Replies
4. Shell Programming and Scripting
Hi,
While trying to supress password prompt using ssh. I have added .ssh folder manually and generated public key and added to authorized_keys file in the remote machine. But still it's prompting for passwords with the following message:
Permission denied... (5 Replies)
Discussion started by: 116@434
5 Replies
5. Emergency UNIX and Linux Support
Hi All,
I am facing issue in setting up passwordless login through ssh on two Solaris-10 boxes. user-id ravrwa from server tsapiq04-zrwdq01 should be able to login to server tsbrit03 as cpsuserq, which is not happening. I am not sure where is the problem, while keys are already all set. Here is... (14 Replies)
Discussion started by: solaris_1977
14 Replies
6. UNIX for Advanced & Expert Users
Hi,
I have two users login on my HPUX i.e user1 and user2.
Inorder to switch from user1 to user2 without password I generated key pair using keygen command for user id user1 and copied the its public key to the .ssh/authorized_keys file of user2.
ssh-keygen -b 2048 -t rsa
This... (5 Replies)
Discussion started by: mohtashims
5 Replies
7. Solaris
This is Solaris 10 and sorce+destination are non root user. Somehow it is broke and I am not able to fix it. Already checked permissions on both servers and authorized_keys entry of destination is same as id_rsa.pub of source server. I can not regenerate keys on source server because I do not know,... (0 Replies)
Discussion started by: solaris_1977
0 Replies
8. Shell Programming and Scripting
how can i use an expect script to do a passwordless ssh login and run a script on a bunch of remote hosts? I do not want to use public key authentication as this would require me to setup the keys on the clients etc.... (2 Replies)
Discussion started by: tdubb123
2 Replies
9. Red Hat
Dear All ,
recently i have configured sftp for a user for which i have done chroot.
but after this , sftp is working fine . but ssh is not working when we connect to the server.
When we try to ssh <user>@<server ip> , the below is the error message that we get and not able to login.
... (2 Replies)
Discussion started by: jegaraman
2 Replies
LEARN ABOUT PHP
ssh2_publickey_add
SSH2_PUBLICKEY_ADD(3) 1 SSH2_PUBLICKEY_ADD(3)
ssh2_publickey_add - Add an authorized publickey
SYNOPSIS
bool ssh2_publickey_add (resource $pkey, string $algoname, string $blob, [bool $overwrite = false], [array $attributes])
DESCRIPTION
Note
The public key subsystem is used for managing public keys on a server to which the client is already authenticated. To authenticate
to a remote system using public key authentication, use the ssh2_auth_pubkey_file(3) function instead.
PARAMETERS
o $pkey
- Publickey Subsystem resource created by ssh2_publickey_init(3).
o $algoname
- Publickey algorithm (e.g.): ssh-dss, ssh-rsa
o $blob
- Publickey blob as raw binary data
o $overwrite
- If the specified key already exists, should it be overwritten?
o $attributes
- Associative array of attributes to assign to this public key. Refer to ietf-secsh-publickey-subsystem for a list of supported
attributes. To mark an attribute as mandatory, precede its name with an asterisk. If the server is unable to support an attribute
marked mandatory, it will abort the add process.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Adding a publickey with ssh2_publickey_add(3)
<?php
$ssh2 = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($ssh2, 'jdoe', 'password');
$pkey = ssh2_publickey_init($ssh2);
$keyblob = base64_decode('
AAAAB3NzaC1yc2EAAAABIwAAAIEA5HVt6VqSGd5PTrLRdjNONxXH1tVFGn0
Bd26BF0aCP9qyJRlvdJ3j4WBeX4ZmrveGrjMgkseSYc4xZ26sDHwfL351xj
zaLpipuBGRrw17mWVBhuCExo476ri5tQFzbTc54VEHYckxQ16CjSTibI5X
69GmnYC9PNqEYq/1TP+HF10=');
ssh2_publickey_add($pkey, 'ssh-rsa', $keyblob, false, array('comment'=>"John's Key"));
?>
SEE ALSO
ssh2_publickey_init(3), ssh2_publickey_remove(3), ssh2_publickey_list(3).
PHP Documentation Group SSH2_PUBLICKEY_ADD(3)