LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-29-2010, 06:17 PM   #1
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
v5.10 Sun_SSH alternative to ConnectTimeout option


Subject says it all. Sun_SSH is lacking a ConnectTimeout option which is really useful for things like sftp inside scripts. Does anyone know an alternative?

FYI, I'm scripting in Tcl, so answers specific to Tcl would be helpful too.
 
Old 10-12-2010, 01:45 PM   #2
amarand
LQ Newbie
 
Registered: Oct 2010
Location: Galloway, Ohio, USA
Distribution: CentOS
Posts: 19

Rep: Reputation: 7
Lightbulb ConnectTimeout

Quote:
Originally Posted by Meson View Post
Subject says it all. Sun_SSH is lacking a ConnectTimeout option which is really useful for things like sftp inside scripts. Does anyone know an alternative?

FYI, I'm scripting in Tcl, so answers specific to Tcl would be helpful too.
Sun has chosen to build Sun_SSH around a relatively ancient version of OpenSSH, for example, per the following link, Sun_SSH version 1.1 is based on OpenSSH 3.5p1:

http://blogs.sun.com/janp/entry/on_sunssh_versioning

Here's a good link that talks about revisions, confirming that you're most likely working with OpenSSH 3.5p1.

http://www.opensolaris.org/os/commun.../projects/SSH/

Based on the following link, this option was not supported in even the slightly newer version:

https://bugzilla.redhat.com/show_bug.cgi?id=155896

This option is available in RHEL 4 - where is openssh version 3.9p1.

This option is not supported by openssh version 3.6.1p2 which is in RHEL3.


Based on this information, if you really need the ConnectTimeout option, you would need to use the at least OpenSSH version 3.9p1 for your application. You can obtain these directly from the OpenSSH project, or from SunFreeware:

http://www.openssh.com/
http://www.sunfreeware.com/

I believe any of the standard packages from these locations will install in /usr/local/bin and you can even specify an alternate path. Simply specify/use the alternate version of the ssh/sftp client based on explicit path, and you can then specify the ConnectTimeout option on the command-line.

If TCL you are using has hooks directly into Sun_SSH and its libraries, you may need to also obtain/compile an OpenSSH-friendly version of TCL that calls the version you've installed above. You can obtain TCL through SunFreeware as well and, I'm sure, from the TCL/TK web-site.

http://www.tcl.tk/software/tcltk/

Hope this helps!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the screensaver option, and where is the sound option? Cinematography SUSE / openSUSE 1 06-20-2008 05:30 PM
Passwd prompt option for "sysdba" option in Oracle shipon_97 Linux - Security 0 09-02-2007 02:17 AM
SSH ConnectTimeOut Problem ! Balakrishnan84 Linux - Networking 2 07-15-2007 11:59 PM
ConnectTimeout only in openssh 3.9 haddel Linux - Software 1 05-08-2007 02:21 AM
rpm have --nodeps option with dpkg is such an option available deepclutch Debian 2 03-26-2006 09:49 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration