2021年2月22日 星期一

在Debian開啟SSH

 1. vi /etc/ssh/sshd_config

設定以下參數設定

PasswordAuthentication yes

PermitRootLogin yes


2. 啟動SSH

/etc/init.d/ssh start 或 service ssh start

3. 設定成自動啟動

update-rc.d ssh enable

在Debian安裝ifconfig

直接使用apt install ifconfig指令會無法安裝

因為ifconfig包含在net-tools套件內

所以要改以下指令安裝

apt install net-tools