02-25-2005
Worth a shot to create a .ssh directory on system B and then copy your authorization key to that dir from .ssh2 (note I stated copy, not move).
It going to be hard to find someone with the same versions that you are attempting to use - plus the fact that there have been security issues with the older version you are running. It may be easier in the long run to upgrade to the one you are running currently on the other servers.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all...
When i send a command via ssh, from a hp10.20 to a sol9 server, i get the following:
# ssh mouton uname -a
mouton root's password:
Of course, after giving the passwd, it works. I'd like to be able to send commands without giving this password.
When i set the sshd in debug mode... (1 Reply)
Discussion started by: penguin-friend
1 Replies
2. Solaris
howdy,
I have a couple of headless Solaris 8 servers i can access via ssh for basic periodic patching.
I would like to use the X server to access some of the apps that reside there also, but when i start X it errors out, complaining it can't find /dev/fb.
Is there a way to bypass the... (3 Replies)
Discussion started by: [MA]Flying_Meat
3 Replies
3. Solaris
Hi all,
i need to run ssh for solaris 8
my server version is
SunOS myserver 5.8 Generic_117350-25 sun4u sparc SUNW,Sun-Fire-880
wher i can get this?
pls help
Thanx n Regards/Ajay (3 Replies)
Discussion started by: ajays
3 Replies
4. Solaris
hye guys..i'm new here..just want to ask how to configure SSH service in solaris 10??
hope you all will help me..tq (2 Replies)
Discussion started by: FaiRiZuL
2 Replies
5. Solaris
Hi,
I m new to Sun Solaris.
I've only changed the PermitRootLogin from no to yes, so that I can login as root from Window vista by using Putty.exe. Then I can create new users and change password.
Except the above configuration, i have do nothing to my SSH server.
Am I need to generate... (5 Replies)
Discussion started by: stacychiam
5 Replies
6. Solaris
Hi,
I am unable to login into my terminal hosting Solaris 10 and get the below error message
"Server refused to allocate pty
ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory "
Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies
7. Solaris
Hi, It's a Solaris 10 zone. I can ssh to other systems without problems, but can not ssh to it (output attached). I don't think there is a firewall here. /etc/ipf/ipf.conf contains nothing.
What could be the problem cause? Please help. Thank you in advance!
sshclient$ ssh -v thiserver... (1 Reply)
Discussion started by: aixlover
1 Replies
8. Solaris
Got a strange problem.
I have 4 Solaris servers all configured the same, Solaris 10 x86 update 10.
When I try to ssh from one Solaris 10 server to another server ssh hangs.
I have an identical server and when I try this everything works fine.
The weird thing is if I am root on the server... (1 Reply)
Discussion started by: ccj4467
1 Replies
9. IP Networking
Hi all.
Im working in a telco Environment and recently setup a new server. The other servers are a combination of Solaris + Linux machines.
Using my new server , I can ping all other servers ( solaris + redhat linux )
but the issue lies where I try to ssh.
I can only successfully ssh linux... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies
10. Solaris
I'm having an issue with SSH on a server that hasn't had any configuration changes made on it in a long time. I SSH to the server and it hangs at "debug1: SSH2_MSG_KEXINIT sent" for exactly 40 seconds then connects fine after that pause. Everything I have found points to DNS, but I use host files... (19 Replies)
Discussion started by: kingdbag
19 Replies
LEARN ABOUT PHP
ssh2_publickey_list
SSH2_PUBLICKEY_LIST(3) 1 SSH2_PUBLICKEY_LIST(3)
ssh2_publickey_list - List currently authorized publickeys
SYNOPSIS
array ssh2_publickey_list (resource $pkey)
DESCRIPTION
List currently authorized publickeys.
PARAMETERS
o $pkey
- Publickey Subsystem resource
RETURN VALUES
Returns a numerically indexed array of keys, each of which is an associative array containing: name, blob, and attrs elements.
Publickey elements
+----------+---------------------------------------------------+
|Array Key | |
| | |
| | Meaning |
| | |
+----------+---------------------------------------------------+
| name | |
| | |
| | Name of algorithm used by this publickey, for |
| | example: ssh-dss or ssh-rsa. |
| | |
| blob | |
| | |
| | Publickey blob as raw binary data. |
| | |
| attrs | |
| | |
| | Attributes assigned to this publickey. The most |
| | common attribute, and the only one supported by |
| | publickey version 1 servers, is comment, which |
| | may be any freeform string. |
| | |
+----------+---------------------------------------------------+
EXAMPLES
Example #1
Listing authorized keys with ssh2_publickey_list(3)
<?php
$ssh2 = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($ssh2, 'jdoe', 'secret');
$pkey = ssh2_publickey_init($ssh2);
$list = ssh2_publickey_list($pkey);
foreach($list as $key) {
echo "Key: {$key['name']}
";
echo "Blob: " . chunk_split(base64_encode($key['blob']), 40, "
") . "
";
echo "Comment: {$key['attrs']['comment']}
";
}
?>
The above example will output:
Key: ssh-rsa
Blob: AAAAB3NzaC1yc2EAAAABIwAAAIEA5HVt6VqSGd5P
TrLRdjNONxXH1tVFGn0Bd26BF0aCP9qyJRlvdJ3j
4WBeX4ZmrveGrjMgkseSYc4xZ26sDHwfL351xjza
LpipuBGRrw17mWVBhuCExo476ri5tQFzbTc54VE
HYckxQ16CjSTibI5X69GmnYC9PNqEYq/1TP+HF10
Comment: John's Key
Key: ssh-rsa
Blob: AAAAB3NzaHVt6VqSGd5C1yc2EAAAABIwA232dnJA
AIEA5HVt6VqSGd5PTrLRdjNONxX/1TP+HF1HVt6V
qSGd50H1tVFGn0BB3NzaC1yc2EAd26BF0aCP9qyJ
RlvdJ3j4WBeX4ZmrveGrjMgkseSYc4xZ26HVt6Vq
SGd5sDHwfL351xjzaLpipuBGB3NzaC1yc2EA/1T
Comment: Alice's Key
NOTES
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.
SEE ALSO
ssh2_publickey_init(3), ssh2_publickey_add(3), ssh2_publickey_remove(3).
PHP Documentation Group SSH2_PUBLICKEY_LIST(3)