Date: Tue, 10 Oct 2006 15:03:18 -0700 From: Chuck Swiger <cswiger@mac.com> To: martinko <gamato@pobox.sk> Cc: freebsd-questions@freebsd.org Subject: Re: ssh tunnel - remote access through nat Message-ID: <C00CADF4-AE1F-4F79-934B-17F1B30FE7E2@mac.com> In-Reply-To: <452C16E0.1010903@pobox.sk> References: <715841970607251003o1d358d3dl894291f50a0b8053@mail.gmail.com> <200607261247.53917.nvass@teledomenet.gr> <452C16E0.1010903@pobox.sk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C00CADF4-AE1F-4F79-934B-17F1B30FE7E2>