티스토리 뷰

Research (연구 관련)

SSH from Remote

홍돌 2024. 8. 30. 07:14

ForwardAgent  

To ssh or rsync from a remote machine, do not copy your private key.

   Your ssh key must never leave your laptop. Ideally it should even be

   hardware protected, e.g. Yubikeys support ssh. Instead, use ssh-agent

   to forward authentication requests back to your laptop, e.g.

   On your laptop:

       ssh-add              (Adds your default key to the local agent)

       ssh -A server_a      (-A, or "ForwardAgent yes" in .ssh/config)

   On server_a:

       ssh server_b

 

Visualization

ssh -L opens a local port. Everything that you send to that port is put through the ssh connection and leaves through the server. If you do, e.g., ssh -L 4444:google.com:80, if you open http://localhost:4444 on your browser, you'll actually see google's page.

Ex)ssh hongsuk@some.remote.server -L 8080:127.0.0.1:8080 -A

'Research (연구 관련)' 카테고리의 다른 글

Quarternions / Gimbal lock  (0) 2024.09.01
Capture data from ARIA glasses  (0) 2024.08.30
HHF Part10 - Applied Aspects of Hand Function  (0) 2024.08.27
Model Parallelisum  (0) 2024.08.23
HHF Part9 - Hand Function Across the Lifespan  (0) 2024.08.23
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/10   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함