ssh tunnel - remote access through nat

Chuck Swiger cswiger at mac.com
Tue Oct 10 15:03:27 PDT 2006


On Oct 10, 2006, at 2:55 PM, martinko wrote:
> [ ... ]
> The thing is that if I just simply create an rc script to achieve  
> this,
> the script is run under root and ssh cannot make use of public key
> authentication which is set up now for a user running it manually.
> Or is there a way to change identity somehow or to run an rc script
> under different user account ??

Of course.  One can use "su -" to run a command under another user,  
or use the "ssh -i" option to pass the user's identity (ie, their SSH  
private key) directly...

-- 
-Chuck



More information about the freebsd-questions mailing list