# SSH Login with Keys ## Client 1. ``` ssh-keygen ``` 2. 在.ssh資料夾找到id_rsa.pub檔案,並複製裡面內容。 ## Server 1. 在.ssh資料夾裡找到authorized_keys檔案,若沒有就創一個。 2. 將剛剛在client端複製的內容貼在authorized_keys檔案裡面。 # SSH with Specified Destination ``` ssh -J yucheng@portal.cgi.lab.nycu.edu.tw yucheng@nv10 ``` 無須vpn。 # SSH with Port Forwarding ``` ssh -J yucheng@portal.cgi.lab.nycu.edu.tw -L 6006:localhost:6009 yucheng@nv10 ``` 將遠端的port 6009連接到本地端的port 6006。
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up