Others > Miscellaneous

ssh problem


hi all
me using redhat on server and open suse on clint.when i want to ssh from my server machine the following error occur
"connection refuse"
i execute the following command on clien machine
"/etc/init.d/sshd start"
it shows the following error just after command execution
"sshd re-exec requires execution with an absolute path"

what can be the solution?

Which rpm you are using for sshd? It seems that its asking for absolute path , check the /etc/init.d/sshd file and change the sshd path to absolute one

#which sshd

Modify /etc/init.d/sshd and change entry of sshd with above absolute path and try restarting sshd and let me know if it works?

You need to start the sshd service on the server, not on the client. Once the service is running, you can ssh in from the client.

From the server, as root:

--- Code: ---/etc/init.d/sshd start
--- End code ---

From the client:

--- Code: ---ssh server-ip
--- End code ---

If you then get a connection refused error, it probably means that, either the service is not running (or not properly configured to accept incoming connections) or the firewall running on the server rejects the connection before it reaches the ssh service.

The "sshd re-exec requires execution with an absolute path" error means that "sshd" is not called with an absolute path in the script. You need to replace the sshd with /usr/bin/sshd as gauravbajaj suggested.

Could you post the results of the previous commands? HTH.

Disable ur SElinux  /etc/selinux/config


[0] Message Index

Go to full version