May 7, 200719 yr I'm trying to script a backup solution, and need to automatically run a command on the server from the client. Unfortunately the server doesn't support ssh or rsh. Is there some other way to issue a command, short of running telnet with an expect script? Thanks, David
May 7, 200719 yr Well rsh is there, but not turned on in inetd.conf. ssh would be better & we'll try to roll that into the security release.
May 10, 200719 yr Author Is this what my inetd.conf line should look like? shell stream tcp nowait root /usr/sbin/tcpd in.rshd and then restart inetd with "/etc/rc.d/rc.inetd restart"? I tried that and this command when run from the client just hangs: rsh -l root 192.168.1.4 ls This command on the client rsh -l root localhost 'ls /root' says "Permission denied". Sorry, I guess this is probably some Slackware config issue I don't know how to resolve.
May 10, 200719 yr I think you have to make it look like this: shell stream tcp nowait root /usr/sbin/tcpd in.rshd -h
May 10, 200719 yr Author Yes, that's right. Also, /root/.rhosts has to list the client machine or IP, and it must have permissions of 600. This allows me to rsh from localhost. I'm still trying to get rsh to work from the client.
May 10, 200719 yr Author Well I'm stumped. I put the IP of my client machine in /root/.rhosts and it still won't connect. It looks like rshd is hearing my remote connection, since this is in my /var/log/secure: in.rshd[3929]: connect from 192.168.1.9 (192.168.1.9) But I'm also seeing this in my system log: rshd[3441]: connect second port: Connection timed out This may be a FreeBSD rsh bug. I found this problem report. Also, remote rlogin works fine, but of course rlogin doesn't let me run any command
Archived
This topic is now archived and is closed to further replies.