Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

openssh - getting the daemon to run

Status
Not open for further replies.

mikieo

IS-IT--Management
Oct 6, 2003
15
GB
Hi experts, sorry if my question is a bit lame but I'm still getting to grips with AIX 4.3.3

Basically I have installed openssh along with the zlib need to get it working - HOWEVER when I try to connect to the AIX box I get connection refused - I assume this is because the daemon is not running, a quick ps -ef | grep ssh indeed shows nothing running except my grep command.... so to cut a long story short - how do I start the shhd process ?

and do I need to remove the # comments in the config file supplied

cheers
mike
 
depends how it was installed. Installing from IBM Developers release you can start it by executing command "startsrc -s sshd".



show outputs of commands:

lssrc -s sshd

lslpp -l|grep -i ssh

rpm -qa

type ssh
type sshd

grep -i ssh /etc/rc.tcpip

ls -al /etc/rc.d/rc2.d/

grep -i ssh /etc/inittab


 
thanks for replying, I downloaded openssh from the bull web set ran the executable to extract it and then smit to install it - I did try the startsrc -s sshd command and had
the error : 0513-085 The sshd Subsystem is not on file.

thanks
mike
 
I don't recall adding this to my inittab, but I may have. it's also possible bull's package autoadded it.

rcossh:2:eek:nce:/etc/rc.openssh >/dev/console 2>&1

if you've installed, and it's not running, just run that script.
 
hey guys and girls ! I'm nearly there I'm making progress and I now get the following message;

Starting OpenSSH daemon on port 22
Could not load host key: /etc/openssh/ssh_host_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
rc.openssh: CMD: error detected in '/usr/local/sbin/sshd -f /etc/openssh/sshd_config -h /etc/openssh/ssh_host_key'

ideas?
m.
 
You need hosts keys in the location sshd_confing points to.

You can generate the keys using "ssh-keygen" command.

ssh-keygen -t rsa1 -f /etc/openssh/ssh_host_key -N ''
ssh-keygen -t rsa -f /etc/openssh/ssh_host_rsa_key -N ''
ssh-keygen -t dsa -f /etc/openssh/ssh_host_dsa_key -N ''


regards, m.
 
Chapter11 - yes I have a directory /etc/openssh that does indeed have files in there - however I have noticed that my keys have permissions -rw------- root system is this correct ?

one step forwards....
mike :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top