3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MacのCyberDuckでトンネル接続

Posted at

MacのCyberDuckでトンネル接続

色々な方法がありますが、私がやっている簡単な方法をご紹介します。

手順

  1. ~/.ssh/configに接続先を登録
  2. sshで対象ホストへ接続
  3. CyberDuckで対象ホストへ接続

1. ~/.ssh/configに接続先を登録

~/.ssh/config

# 踏み台
Host bastin
  HostName aaa.aa.aa.aaa # 踏み台のホスト名(IPアドレス)
  User bastin_user
  Port 22
  IdentityFile ~/.ssh/bastin.pem
  IdentitiesOnly yes

# 対象ホスト
Host target
  HostName bbb.bb.bb.bbb # 対象ホスト名(IPアドレス)
  User target_user
  Port 22
  IdentityFile ~/.ssh/target.pem
  ProxyCommand ssh -W %h:%p bastin
  LocalForward 2222 localhost:22

2. sshで対象ホストへ接続

% ssh target
[target_user@target ~]$ 

3. CyberDuckで対象ホストへ接続

  • ホスト名:target
  • ポート:2222
  • ユーザ名:target_user
  • SSH Private Key:~/.ssh/target.pem

スクリーンショット 2022-02-02 12.58.13.png

3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?