[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] @ -- connect to host
From: |
Alfred M. Szmidt |
Subject: |
[bug-inetutils] @ -- connect to host |
Date: |
Mon, 31 Aug 2009 03:08:08 -0400 |
Always wanted this command, but done properly (i've been using a
hackish shell script for years now).
@ HOST
@ reads the file .netrc, and connects to HOST using whatever login
info you specify there. There are to special extentions to the .netrc
format, `alias ALIAS HOST' and the extra `command' field for a
`machine' line. So for example, .netrc could contain:
| machine fencepost.gnu.org login ams password frob command "lsh -x \h"
| alias fp fencepost.gnu.org
| machine hydrogen login ams password foo
| default fencepost.gnu.org
So one can do `@ fp' to connect to fencepost (using lsh, with X11
forwarding), or just `@'. Or "@ hydrogen" to connect to hydrogen
using some default method (ftp? rsh? don't care :-)
One could even go a bit further, and specify the connection command
after the hostname, e.g. `@ fp sftp', and specify the sftp connection
command using:
| machine fencepost.gnu.org login ams password frob command sftp "sftp \h"
What do you think? Could someone add this to the TODO file? Can't
push currently.
- [bug-inetutils] @ -- connect to host,
Alfred M. Szmidt <=