Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to establish a connection in SSH, to a remotehost...

I am having the following information from my company(example, not real data)...

ssh -p 1234 -L 4321:126.4.12.3:4423 [email protected] -N

They asked me to connect using Linux command, in their environment...

I am trying to connect with the details through my PUTTY terminal from my personal computer...

Which data to give in which place for PUTTY connection?

Thanks,

Mani

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Instead of using putty as front end, use Plink in command line :

plink.exe -P 1234 -L 4321 126.4.12.3:4423 [email protected] -N

See http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html and to download it : http://the.earth.li/~sgtatham/putty/latest/x86/plink.exe

share|improve this answer
    
plink, does it work on windows??? Nothing happens when I double click on the exe... –  Mannii88 Jun 9 '12 at 18:56
    
As you can see, it's a *.exe file, so yes, it's for windows. Download the executable, open a windows terminal cmd, type chdir <PATH/TO/EXE/DIR> and my command line. –  sputnick Jun 9 '12 at 18:59
    
thanks !!! it didn't strike me...Sorry!~ –  Mannii88 Jun 9 '12 at 18:59
    
unknown option -p, i am getting as the message, when i give the command... –  Mannii88 Jun 9 '12 at 19:06
    
Use -P instead. See doc : the.earth.li/~sgtatham/putty/0.62/htmldoc/Chapter7.html#plink Thanks to upvote and accept response if it's useful for you ;) –  sputnick Jun 9 '12 at 19:09
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.