LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2009, 09:10 AM   #1
racc11
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
Konsole ssh command dies when issued in profile


I need to set up a secure tunnel to open an RDC connection to a remote computer. The following works perfectly:
I open a Konsole shell then enter
ssh myusername@ssh.server -L 127.0.0.2:3389:remote.hostname:3389
I enter my password and the shell stays connected to the server.

Since it is no fun to type the full command every time, I created a Konsole profile and I entered the above command in the Command field. I opened the profile shell and it connects to the ssh server and gives me the password prompt, but as soon as I enter the password and login, the session terminates. Apparently Konsole issues a logout command immediately after the first completes.
What do I need to do to keep the session alive?

Thank you
 
Old 03-20-2009, 11:40 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by racc11 View Post
I need to set up a secure tunnel to open an RDC connection to a remote computer. The following works perfectly:
I open a Konsole shell then enter
ssh myusername@ssh.server -L 127.0.0.2:3389:remote.hostname:3389
I enter my password and the shell stays connected to the server.

Since it is no fun to type the full command every time, I created a Konsole profile and I entered the above command in the Command field. I opened the profile shell and it connects to the ssh server and gives me the password prompt, but as soon as I enter the password and login, the session terminates. Apparently Konsole issues a logout command immediately after the first completes.
What do I need to do to keep the session alive?

Thank you
You might want to try the
Code:
wait
command. Check the bash help for the exact usage.
cheers,
jdk
 
  


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
stopping command issued from shell script mr_scary Programming 10 01-12-2007 03:29 PM
screen dies after remote ssh launch olaf_I Linux - Networking 0 01-31-2006 03:37 AM
ssh dies pinaker Linux - Software 1 09-19-2005 03:00 PM
Timestamp of previous command issued benjaminrtz Linux - General 1 04-16-2005 01:53 AM
SSH dies with ssh_exchange_identification: Con... Snabber Linux - Networking 5 07-08-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:13 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration