SSH Solaris 9 and SSH_CLIENT


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users SSH Solaris 9 and SSH_CLIENT
# 1  
Old 09-26-2002
SSH Solaris 9 and SSH_CLIENT

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 ( sshd -d -d -d ), on my client side i get:
SSH_CLIENT=0.0.0.0 "ports"

If i try the same thing on an other server, my SSH_CLIENT is correctly set.


Under Sol9, how do you set the SSH_CLIENT variable?
Is there a specific file?

I'm trying to set up coms between an hp 11.00 and a sol9, with native ssh on the sol9, and OpenSSH 3.0.2 on the HP...

Please help my neurones cool down a bit!!

Thanx...
penguin-friend
# 2  
Old 09-27-2002
You need to generate public and private keys for a user on the HP machine, and create an "identification" file in the user's .ssh2 directory which references the user's private key thus:

idkey [private key file]

Once this is done you need to copy across the public key for that user to the .ssh2 directory of a user on the Solaris machine. Then reference this public key in the "authorization" file of the Solaris user thus:

key [public key file]

You should now be able to ssh to the solaris machine as the second user without being prompted for a password, this:

ssh [user]@hostname

If you wish to execute a command as that user:

ssh [user]@hostmame "[command]"

Reading the man pages on ssh, sshd and ssh-keygen should iron out any problems you continue to have. If not post back here.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 9 - SSH 40 Second Delay

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

2. IP Networking

Cant SSH Solaris servers

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

3. Solaris

Solaris ssh client hangs when connecting to another Solaris machine

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

4. Solaris

How to install SSH on Solaris 10?

Dear friends, I am running Solaris 10 x86, I have only one monitor so I want to access my solaris machine with putty. Please help me setup SSH on Solaris and how to make my solaris system ssh-accessible on the network. It would be so nice of you if could provide details on each step as I am a... (4 Replies)
Discussion started by: gabam
4 Replies

5. Solaris

Solaris 10 - ssh out ok, but ssh in not

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

6. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

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

How to use SSH in Solaris 10?

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

8. Solaris

SSH configuration in solaris 10

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

9. Solaris

ssh for solaris 8

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

10. Solaris

trouble auto connecting ssh 3.6.1 (Solaris 8) to ssh 3.0.1 (Solaris 6)

I am currently setting up rdiff-backup to use ssh to connect and remotely backup and retrieve data. I am doing so by creating rsa keys for each server and copying the relevant key to the /.ssh folder on the relevant server. All seems to work well when severs running solaris 8 with ssh 3.6.1 are... (6 Replies)
Discussion started by: falklandtim
6 Replies
Login or Register to Ask a Question