← Back to team overview

sslug-teknik team mailing list archive

Re: ændre ssh remote shell

 

On Mon, 15 Jun 2009 17:18:39 +0200
Lars Madsen <daleif@xxxxxxxxx> wrote:

> nogen ideer?
> 
Du kan scripte dig ud af det med et lille wrapper script til ssh:

#!/bin/sh
# script kaldes: script uid@host [args]*

USER=$1
shift

CMD=$@
ARGV="/bin/bash -c '$CMD'"

ssh "$USER" "$ARGV"

exit 0


-- 
Hilsen/Regards
Michael Rasmussen
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
A computer is like air conditioning: it becomes useless when you open
windows.

Attachment: signature.asc
Description: PGP signature


Follow ups

References