Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSH via PROXY (console)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Arkham
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 111
Location: Quilpue, Chile

PostPosted: Fri Jan 14, 2005 4:01 pm    Post subject: SSH via PROXY (console) Reply with quote

Hi folks

I set up my home-box with sshd... Also I managed to get a "computer" working here at work (P II 233 Mhz, 3x32Mb PC-100) wich obvioulsy runs gentoo (someday I´ll tell you the hell the instalation was because...)

I´m behind a proxy =/ . As you can imagine, the gentoo@work.box is not running X, and I would like to SSH my home-box

I´ve read that you can do that setting the proxy settings in putty, but putty only works in X..

Any ideas how to do that via Console??
Any program I´m missing?
Thx
?
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri Jan 14, 2005 8:40 pm    Post subject: Reply with quote

You didn't mention the type of your proxy - HTTP or Socks?
If it's Socks, you could just emerge the dante package, sonfigure /etc/socks.conf and run a socksified ssh via
Code:
socksify ssh user@home.box
instead of plain
Code:
ssh user@home.box
If it's a HTTP proxy, you'll need to set up a HTTP tunnel server on your home box and a HTTP tunnel client on your work box - don't know which packages are provided by portage for that, try searching around http://packages.gentoo.org :)
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
scap1784
Apprentice
Apprentice


Joined: 25 Dec 2002
Posts: 225

PostPosted: Fri Mar 25, 2005 7:23 am    Post subject: Reply with quote

Here is what you need to do...

connect.c can be found at http://www.taiyo.co.jp/~gotoh/ssh/connect.html

taken from my wiki howto
Code:

We will be using connect.c to allow our ssh client to tunnel through the proxy.

   1. Download the source from the location noted above
   2. With the connect.c file in the same directory make the connect program with the following command. make connect
   3. Move ./connect to /usr/bin/
   4. Edit or create ~/.ssh/config so that it looks like the following
      Host "Domain Name or IP of the server"
      ProxyCmmand connect -H "proxyAddress:port" %h %p

    * For more information on further options please see the connect.c website listed above.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum