[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Others  |  Miscellaneous  |  Topic: ssh problem
Welcome to LinuxCommunity

You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: ssh problem  (Read 463 times)
0 Members and 1 Guest are viewing this topic.
yasir453
Linux Noob !
*
Offline Offline

Posts: 5


View Profile
« on: February 09, 2010, 04:16:11 AM »

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?
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 644


View Profile
« Reply #1 on: April 20, 2010, 02:33:53 AM »

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
/usr/sbin/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?
Logged
pedro
Linux Noob !
*
Offline Offline

Posts: 14


View Profile
« Reply #2 on: April 20, 2010, 07:00:23 AM »

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

From the client:
Code:
ssh server-ip

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.
Logged
getviswa
Linux Noob !
*
Offline Offline

Posts: 6


View Profile
« Reply #3 on: June 02, 2010, 03:24:21 AM »

Disable ur SElinux  /etc/selinux/config
Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Plz Help me on my HDD problem Other Devices sabusomu 6 2927 Last post June 21, 2004, 11:41:01 AM
by dragoncity99
VGA Problem Linux Video Support sapheroth 3 2101 Last post June 20, 2004, 03:39:43 AM
by dalek
FTP Problem Linux Servers Support mfaisalkh 1 703 Last post June 02, 2010, 03:28:12 AM
by getviswa
NFS Problem Linux Servers Support puneetloiya 0 825 Last post July 10, 2004, 05:36:31 AM
by puneetloiya
Qmail Problem account login problem Linux Servers Support vlinux1 8 1790 Last post September 21, 2005, 05:08:17 AM
by gauravbajaj
Search LS
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 29, 2010, 10:28:10 AM

Login with username, password and session length
Navigation
Recent Discussions
[July 24, 2010, 11:46:22 PM]

[July 24, 2010, 04:10:46 PM]

[July 23, 2010, 07:22:27 AM]

[July 23, 2010, 07:20:53 AM]

[July 23, 2010, 07:19:15 AM]

[July 23, 2010, 07:15:30 AM]

[July 23, 2010, 07:08:21 AM]

[July 19, 2010, 11:01:10 PM]

[July 19, 2010, 10:01:58 AM]

[July 19, 2010, 01:21:00 AM]
Members
Total Members: 7690
Latest: BOZZYPRINCESS
Stats
Total Posts: 9524
Total Topics: 2729
Online Today: 7
Online Ever: 128
(April 10, 2010, 10:24:17 PM)
Users Online
Users: 0
Guests: 12
Total: 12
Privacy Policy| Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Theme & TinyPortal v0.9.8 © Bloc