LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-21-2008, 10:43 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
SSH client Keepalive Options


Instead of modifying the /etc/ssh/sshd_config

with

PHP Code:
TCPKeepAlive yes

ClientAliveInterval 60 
I would prefer to do this at the command line. Can one guide me in the right direction?

PHP Code:
ssh -p 12022 -o TCPKeepAlive yes ClientAliveInterval 60 -L 5900:localhost:5900 test1@test.net 
I cant seem to get the option right!
 
Old 11-21-2008, 11:27 AM   #2
Autocross.US
LQ Newbie
 
Registered: Aug 2006
Location: Chesapeake, VA
Distribution: Solaris, HP-UX, RedHat, Fedora
Posts: 15

Rep: Reputation: 0
This syntax works for me on redhat:

Code:
ssh -p 12022 -o TCPKeepAlive=yes -o ClientAliveInterval=60 -L 5900:localhost:5900 test1@test.net
The 'ClientAliveInterval' isn't supported though. Guess it's an Ubuntu thing.

Last edited by Autocross.US; 11-21-2008 at 11:30 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to setup thin client just for telnet or ssh client use using boot diskless PXE. hocheetiong Linux - Newbie 3 05-21-2008 07:02 PM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 11:53 AM
VNC Client Options trab Feather 0 09-07-2004 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:11 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