Fri
13
Aug
ad3

by default, ssh kat unix/linux mmg takkan membenarkan korang buat connection through proxy melainkan korang guner system-wide proxy

so kat bawah ni caranyer untuk membolehkan korang establish connection tu

1. Install connect-proxy dari apt-get (untuk debian user)

sudo apt-get install connect-proxy

2. ATAU compile sendiri

wget http://www.taiyo.co.jp/~gotoh/ssh/connect.c
gcc connect.c -o connect
sudo cp connect /usr/local/bin/ ; chmod +x /usr/local/bin/connect

3. Pastu configure ssh korang. edit ~/.ssh/configure atau /etc/ssh/ssh_config dengan line dibawah ni

Host *.domain.com
ProxyCommand connect -S proxydomain.my:port %h %p

*Dalam kes aku, aku guner SOCKS proxy, so aku guner -S

- Then semuer connection ker host domain.com akan melalui sock proxy “proxydomain.my” dengan menggunakan port “port”


RELATED POST/S:

  • Roller Coaster Kingdom Stuck at 74% of Connecting to Server
  • How to Record Streaming Radio in Vista
  • Ubuntu: The package lists or status file could not be parsed or opened
  • Convert Video to MP3 using VLC
  • ShareThis passing the wrong {url} and {title}


  • Author:
    Time:
    Friday, August 13th, 2010 at 3:19 am
    Category:
    Mumbling
    Comments:
    You can leave a response, or trackback from your own site.
    RSS:
    You can follow any responses to this entry through the RSS 2.0 feed.
    Bookmark / Share:
    Navigation:

    facebook comments:

    2 Responses to “SSH via Proxy”

    1. Pemancha Says:

      Very good info!

    2. ad3 Says:

      not very good, but good enough.. :p

    Leave a Reply