Cynosure.X International LLC

: :

Add Comment | Related Links | TrackBack
Related Content

ConnectSSH.sh (GPL)

I connect to a number of different UNIX host computers on any given day. I have a different user name on each host computer. And each host computer may have SSH daemon running on a non-standard port. I am tired of ssh'ing over to a host computer only to realized that I've forgotten to specify the user name or the port number on the command-line. Connecting to a SSH daemon should be as easy as the way PuTTY GUI does it; double-click on an alias and away you go. So I've written this ConnectSSH.sh script that lets you easily connect to any SSH daemon based on an alias.

To set up the alias configuration file, create "ConnectSSH.txt" in the same directory as this executable script. Each entry is on a separate line. Each entry has four fields that are separated by the '|' character. The four fields are: 1) alias name; 2) user name; 3) host name; 4) SSH flags. SSH flags can be an empty field. SSH flags is passed to the SSH client.

ConnectSSH.sh is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.

Usage

  ConnectSSH.sh "alias"

Configuration Examples

  cloud|rider|www.skycloud.com|-X
photos|amber|www.home.com|
web hosting|admin|www.nowhere.com|-p 55555

Execution Examples

  ConnectSSH.sh cloud

  ConnectSSH.sh amber

  ConnectSSH.sh "web hosting"

Attached File: ConnectSSH.sh (786 B)

Chieh Cheng
Mon, 03 Dec 2007 21:50:50 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 0 + 9?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

57 Users Online

Hacking Digital Cameras
Fun for Photographers



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.