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 12-16-2013, 09:58 AM   #1
retghy
LQ Newbie
 
Registered: Jul 2011
Posts: 17

Rep: Reputation: Disabled
Question How to know what command PUTTY uses?


Hello good morning.

I was wondering if there is a way to know what exact command does PUTTY uses to accomplish what we click in the GUI.

For example I use putty to make a ssh tunnel with the following paremeters:

Code:
IP: 170.171.42.100
Dynamic port: 8080

Under protocol options I tick "Don't start a shell or command at all" and this is very important for me.
Reading about SSH tunnels I found something like this:

Code:
$ssh -D 8080 user@IP
Is that command correct? What about the "Don't start a shell or command at all" setting? what parameter would that be.

Thank you very much in advanced.
 
Old 12-16-2013, 10:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
there is no "exact command" as PuTTY is an SSH client, it's talking SSH, not the command line options you pass to the default OpenSSH client, as that's just another client.

As per the manpage, not opening a shell is done with the -N option on ssh commandline.
 
1 members found this post helpful.
Old 12-16-2013, 10:41 AM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
You can check PuTTY user manual for detailed explaination.
http://the.earth.li/~sgtatham/putty/0.63/htmldoc/
http://the.earth.li/~sgtatham/putty/0.63/puttydoc.txt
 
Old 12-16-2013, 10:50 AM   #4
retghy
LQ Newbie
 
Registered: Jul 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thank you both for taking the time to answer.

I'll try the command I found adding the -N parameter.
 
  


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
Putty won't accept command longer than a few lines puttyguy Linux - Newbie 8 09-03-2013 03:22 PM
[SOLVED] PuTTY Command Sender changing +x to X Predatorian Linux - General 2 03-21-2013 03:21 PM
open a putty & run command thru autologin send2rawat Linux - General 5 07-31-2007 09:42 AM
Command for downloading using Putty michn77 Linux - General 2 01-13-2004 12:24 PM
Maximize Putty to command prompt? KePSuX General 0 08-15-2003 04:05 PM


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