On Sat, 07 Jun 2003 21:36:32 -0700 (PDT) Josh Brooks <[EMAIL PROTECTED]> wrote:
> I have read the ssh man page and am not getting the results I think I > should. some background: > > serverA is the client > > serverB is running sendmail on port 25 > > > I want to telnet to serverA on port 34 and get a response from the > sendmail daemon running on serverB. > > I tried this: > > ssh -L 34:serverB:25 [EMAIL PROTECTED] > > ^^^ seems to be what the man page instructs me to do ... > > But when I run that command, it asks me for a password, and I log into > serverB just like any other time I ssh there to log in. You want to add the -N option: don't execute a remote command (or login in the absence of one). I'd also use -f and -n (I think -f may imply -n but it doesn't hurt ...). That will also put it in background after asking for the password and make sure output is properly redirected, etc. Add those options anywhere before the [EMAIL PROTECTED] piece. -- Steve Sapovits [EMAIL PROTECTED] _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
