Re: using ssh to run remote commands?

From: Eric Anderson (anderson@centtech.com)
Date: 03/27/02


Date: Wed, 27 Mar 2002 12:42:13 -0600
From: Eric Anderson <anderson@centtech.com>
To: Fernan Aguero <fernan@iib.unsam.edu.ar>

Running remote commands with SSH is the same as running them with rsh.
Examples:
User A wants to run App on HOST as him/herself:
As User A: ssh HOST App
User A wants to run App on HOST as User B:
ssh userb@HOST App

You just have to make sure you set your keys up on the corresponding side.
SSH's manpage is pretty decent and should help you with all that stuff. ssh
should be pretty much a drop in replacement for rsh.

Eric

Fernan Aguero wrote:
>
> I'd like to know how to run remote commands using ssh.
> I know I can do it as myself, but I'd like to know how can I set up my
> systems to allow non-login users (root, operator, amanda) to run
> remote commands on other hosts.
>
> Specifically, I want to now how can i run restore on the backup server
> (the one holding the tape drive) to recover full filesystems to a
> remote host.
> Obviously this should be done as either root or some other privileged
> user.
>
> All examples point to rsh, and I'd like to know if this can be done
> securely using ssh.
>
> Thanks in advance for any comments or pointers,
>
> Fernan
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-security" in the body of the message

-- 
------------------------------------------------------------------
Eric Anderson	   Systems Administrator      Centaur Technology
You have my continuous partial attention
------------------------------------------------------------------
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message


Relevant Pages

  • RE: sshd / ssh setup
    ... We have an Remote FreeBSD system which is located some where on the ... This method gives the maximum protection possible utilizing ssh. ... Host setup steps. ... Reboot your system to activate sshd and login as root. ...
    (freebsd-questions)
  • SSH filter transer, was Re: Soft Update - directory/file listing
    ... But SSH file transfer is painfully slow all the time. ... ## SSH 3.2 Server Configuration File ... # Note that forwardings using the name of this host will be allowed (if ...
    (freebsd-performance)
  • Re: [opensuse] Re: OpenSUSE PuTTY ?
    ... PuTTY lets you set up all kinds of special options, tied to which host ... The ssh daemon on the host machine is usually activated by default, ... As a taster to open a remote session in a new window in any konsole ... Windows users should explore Cygwin as this will allow you to run ssh ...
    (SuSE)
  • Re: Disable name canonicalization for OpenSSH GSSAPI
    ... The issue I'm having is with a new server ... I'm unable to setup the correct reverse ... When I attempt to connect to this host with SSH, ...
    (comp.protocols.kerberos)
  • Re: hacked?
    ... So I ssh'd in and did a netstat and saw what looked like an unwanted SSH connection... ... On the local host type nmap -sV localhost -p 1-65535 to see what ports respond and which apps/services. ...
    (comp.os.linux.misc)