以下の内容はhttps://anton0825.hatenablog.com/entry/20140924/1414669878より取得しました。


SSHを通さないProxy環境にあるMacからEC2などの外部サーバにSSHでログインする

EC2に443ポート経由でログインする場合は以下のようにする。
・Macで以下を行う
 ・corkscrewをインストール
  brew install corkscrew
 ・~/.ssh/configに以下のようにHostを追加

Host hostname
   User ec2-user
   Port 443
   Hostname <hostaddress>
   IdentityFile ~/.ssh/private_key
   ProxyCommand corkscrew proxyname 8080 %h %p



・サーバ側で以下を行う
・sshd_configを修正し、443ポートでログインできるようにする
 #Port 22の下にPort 443を追記
 sudo nano /etc/ssh/sshd_config
 以下のようになる。
 #Port 22
 Port 443
・Config再読込
 sudo service sshd restart
参考:http://open-groove.net/linux/sshd-restart/
 Mac - 認証付きプロキシ環境でssh接続したい場合、Squid + corkscrewの組み合わせで乗り越えてみる - Qiita




以上の内容はhttps://anton0825.hatenablog.com/entry/20140924/1414669878より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14