取得ssh私鑰 官方連結
參考資料</br>
使用金鑰連線:sudo ssh -i /金鑰存放位置/下載下來的檔案 username@ip-address</br>
使用scp傳送檔案:sudo scp -i /金鑰存放位置/金鑰.pem檔案 要傳送的檔名 username@ip-address: 要記得:等於aws的根目錄
從遠端複製到本地端 sudo scp -i /金鑰存放位置/金鑰.pem檔案 username@ip-address:要接收的/檔案位置/檔名 /位置檔案存放的本機位置檔案存放位置可以改為只有.代表當前位置
當遇到Add correct host key in /var/root/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /var/root/.ssh/known_hosts:1 ECDSA host key for [伺服器端IP地址] has changed and you have requested strict checking.
因為你原先連線伺服器有變動所以需要你重新認證
原文網站
When you add multiple gestures to your app’s view hierarchy, you need to decide how the gestures interact with each other. You use gesture composition to define the order SwiftUI recognizes gestures. There are three gesture composition types:
gestures 手勢
hierarchy 層次結構 (階級制度)
decide 決定
interact 互相作用互相影響
each other 彼此(每個,其他)
composition 作品 組成 (在這裡為組合)
nio是non-blocking比io新速度也比較快,也不會需要等待暫停等待資料到達
可以使用System.getProperty("user.dir")來查詢當前目錄
關於使用File在Mac與Windows的路徑會自動轉換文件
With the Java libraries for dealing with files, you can safely use / (slash, not backslash) on all platforms. The library code handles translating things into platform-specific paths internally.
使用nio的方式
關於使用path.of or paths.get 連結 文件