# 多處理機平行程式設計使用ubuntu terminal連線到伺服器 ###### tags: `成大多處理機平行程式設計` [ToC] ## 連線到實驗室伺服器 請確保使用學校網路 1. 打開terminal 2. 輸入以下指令即可連線 ``` ssh 學號@140.116.154.66 輸入密碼 ``` ## 傳送檔案到伺服器上 在本地terminal輸入 1. 傳送單一檔案 ``` # example: scp /path/to/local/file username@remote_ip:/path/to/remote/destination 輸入密碼 ``` 2. 傳送整份資料夾 ``` # example: scp -r /path/to/local/directory username@remote_ip:/path/to/remote/destination 輸入密碼 ``` ## 取得伺服器上的檔案 在已經ssh連到伺服上的terminal輸入 ``` scp 學號@140.116.154.66:/path/to/remote/file /path/to/local/directory 輸入密碼 ``` https://classroom.github.com/a/KQJulhXs