0
0

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.

ポートフォワーディングを使用して踏み台経由でSFTP接続する

Posted at

いつもいつも覚えられないのでメモる。

目的のサーバに直接繋げられずに踏み台サーバを経由してssh接続/SFTP接続する方法

ssh -L 2001:目的サーバのhost:22 username@踏み台サーバのhost

# 例
ssh -L 2001:192.168.1.1:22 shindev@35.65.113.24 -i nantoka.pem

つながったらファイル転送ソフトで

項目
プロトコル SFTP
ホスト localhost
ポート 2001
ユーザ 目的サーバの接続ユーザ
パスワード そのパスワードまたは踏み台サーバで作った鍵
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?