使用場景:本地VSCode通過SSH訪問(遠程)服務器
通過SSH連接遠程服務器:ssh user@hostname
(SSH默認端口爲22),然後提示需要輸入登錄密碼
參考:https://code.visualstudio.com/docs/remote/ssh
後續TODO: generate SSH key
使用場景:本地VSCode通過SSH訪問(遠程)服務器
通過SSH連接遠程服務器:ssh user@hostname
(SSH默認端口爲22),然後提示需要輸入登錄密碼
參考:https://code.visualstudio.com/docs/remote/ssh
後續TODO: generate SSH key
shell腳本獲取腳本所在目錄 執行腳本的父目錄不一定是當前的工作目錄。 url=$(dirname $(readlink -f $0))