Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use ssh-agent and aliases' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use ssh-agent and aliases
Authored by: Anonymous on Jul 23, '03 12:44:52PM

Setup ssh-agent (search this site for plent of different ways to do this). This will allow passwordless logins. Put the ssh command in your ~/.cshrc file:

alias smtp 'ssh mymailhost.domain.com -C -L 6110:127.0.0.1:110 -L 2525:127.0.0.1:25'

Or, for a background connection on a hardwired machine (say, a box at work that never goes down):

alias smtp 'ssh mymailhost.domain.com -C -N -L 6110:127.0.0.1:110 -L 2525:127.0.0.1:25 &'

Now, typing "smtp" at the command line of your machine will do all of it in the background, no password or anything required. Also, ssh will generally allow you to sleep a laptop for an hour or 2 before killing the connection (how long depends upon the client and server versions and configurations).

Also, no need to download tcpflow to sniff pwd, just use the built in tcpdump:

tcpdump -i en0 -X

---
Regards,

Ed Hintz



[ Reply to This | # ]
Use ssh-agent and aliases
Authored by: uurf on Jul 23, '03 04:26:16PM
"no need to download tcpflow to sniff pwd, just use the built in tcpdump:"

tcpdump -i en0 -X

"dyld: tcpdump can't open library: /usr/lib/libpcap.A.dylib (No such file or directory, errno = 2)"

/usr/lib/libpcap.a
/usr/lib/libpcap.dylib
are present, however... odd.

[ Reply to This | # ]