Operating System - Linux
1825719 Members
3201 Online
109686 Solutions
New Discussion

Remotely starting rc scripts doesn't work

 
SOLVED
Go to solution
dbsanders
New Member

Remotely starting rc scripts doesn't work

RHEL 5
What am I missing? I can start the services with an interactive login on the server, but when I try with remsh (rsh) or ssh from another server, it hangs before I see the [OK].

# /etc/init.d/samba start
Starting Samba smbd: [ OK ]

# ssh server "/etc/init.d/samba start"
Starting Samba smbd:

2 REPLIES 2
Matti_Kurkela
Honored Contributor
Solution

Re: Remotely starting rc scripts doesn't work

My first guess would be: the [OK] display uses TTY control features, and a non-interactive SSH connection does not allocate a pseudo-TTY unless explicitly requested.

So try this:

ssh -t server "/etc/init.d/samba start"

MK
MK
dbsanders
New Member

Re: Remotely starting rc scripts doesn't work

Thanks, that was the issue.