Situation
# 用 Ubuntu PC 要 SSH FortiGate
Using an Ubuntu PC to SSH into the FortiGate.
Solution
[1]
# 生成RSA公鑰
CMD > sudo ssh-keygen -t rsa
[2-1]
# 切換至公鑰存放目錄
cd /root/.ssh
[2-2]
# 複製金鑰
vi ./id_rsa.pub > V > y
[3]
# 登入FortiGate並編輯使用者
FortiGate CMD > config system admin > edit "Username"
[4]
# 設定SSH公鑰,要加雙引號
set ssh-public-key1 "Your_KEY"
Check
# 測試SSH
ssh Username@IP_Address > "Password"