Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

rsh or ssh for remote commands?

Featured Replies

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

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.

  • 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.

I think you have to make it look like this:

 

shell   stream  tcp     nowait  root    /usr/sbin/tcpd  in.rshd -h

  • 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.

  • 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 :/

  • 1 month later...
  • Author

Bump. Has anyone gotten any kind of remote command to work? Help?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.