[vox-tech] Providing access to SSH on Kiosk?
Bill Kendrick
vox-tech@lists.lugod.org
Mon, 12 Jan 2004 16:42:01 -0800
On Mon, Jan 12, 2004 at 03:06:50PM -0800, Ken Herron wrote:
> Your best bet might be to avoid sh altogether and use perl, c, or
> something like that:
>
> #!/usr/bin/perl -w
> print "Host: ";
> my $host = <STDIN>; chomp $host;
> print "Username: ";
> my $user = <STDIN>; chomp $user;
> exec('/usr/bin/ssh', '-l', $user, $host);
> exit 1;
Ken, you're awesome. Unless anyone else has any reason they think this
WON'T work well, I'm going to use it. :^)
-bill!