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

Keep track of remote host connections in Terminal UNIX
I wrote a perl script called connect to keep track of the hosts I connect to. It provides a text-based menu system to add, delete, and modify remote hosts you connect to, much like putty does. It stores the host information in a file in your home directory called .connect.
B To install the script there are four simple steps to follow:
  1. Download the script
  2. Put the script in a directory in your path, either /usr/bin or /usr/local/bin (or ~/bin if you have it set up).
  3. Type chmod 755 connect
  4. Type connect to start it up.
That's it; enjoy!

[robg adds: In case the host site vanishes, I have mirrored the script on macosxhints.com.]
    •    
  • Currently 3.33 / 5
  You rated: 4 / 5 (3 votes cast)
 
[4,728 views]  

Keep track of remote host connections in Terminal | 4 comments | Create New Account
Click here to return to the 'Keep track of remote host connections in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Keep track of remote host connections in Terminal
Authored by: jeremyp on Sep 22, '04 05:43:28AM
A lot of what this script does is emulating the existing ssh config file which resides in .ssh/config and is fully documented on the ssh_config(5) man page. Here is a fragment of my own ssh config file

ForwardX11 yes
host kipadev
user jeremy
host tornado
user kroot
host andy
LocalForward 6025 10.0.1.106:25
HostName andy.home.jeremyp.net
host andy-ext
user jeremyp
host andy-fwd
user jeremyp
HostName andy-ext
LocalForward 6389 10.0.1.102:3389
LocalForward 2401 10.0.1.100:2401
LocalForward 6080 10.0.1.106:80
LocalForward 6025 10.0.1.106:25
LocalForward 8443 carr.34sp.com:8443
Most of the entries consist of a host line and a user line to specify which user to log in as on that host. andy-fwd is an alias for andy-ext but with lots of port forwarding.

[ Reply to This | # ]
Keep track of remote host connections in Terminal
Authored by: ryan2 on Sep 23, '04 04:29:25AM

Pretty much, the only difference I guess would be that this can do telnet sessions too. I have some boxes that don't have ssh on them and need telnet to connect to them.



[ Reply to This | # ]
Keep track of remote host connections in Terminal
Authored by: demmons65 on Sep 22, '04 09:58:11AM

After grabbing the code and pasting it in a text document, saving, and chmodding it, I put in a test entry. Running it, I get this message:

Running Host: oracle
buffer_get: trying to get more bytes 4 than in buffer 0

Any ideas? I'm definitely not a perl guy so I'm not sure what way to go from here.


---
d a v e

http://www.hostwerks.com/~dave/



[ Reply to This | # ]
Keep track of remote host connections in Terminal
Authored by: demmons65 on Sep 22, '04 10:04:35AM

I should have dug a little more this morning.

This error message occurs when the ssh authorized_keys and known_hosts files get hosed. Don't know why this happened now but removing them corrected the problem.

So it's not an issue with the script, unless I try adding another host to the list and the files get hosed again.

I'll post up if that happens.

---
d a v e

http://www.hostwerks.com/~dave/



[ Reply to This | # ]