摘要:
deb http://mirrors.sohu.com/ubuntu/ lucid main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ lucid-security main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ lucid-updates main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ lucid-proposed m 阅读全文
摘要:
sudo apt-get install openssh-serverUbuntu缺省安装了openssh-client,所以在这里就不安装了,如果你的系统没有安装的话,再用apt-get安装上即可。然后确认sshserver是否启动了:ps -e |grep ssh如果只有ssh-agent那ssh-server还没有启动,需要/etc/init.d/ssh start,如果看到sshd那说明ssh-server已经启动了。ssh-server配置文件位于/ etc/ssh/sshd_config,在这里可以定义SSH的服务端口,默认端口是22,你可以自己定义成其他端口号,如222。然后重启 阅读全文
摘要:
* First, ufw needs to be enabled. From a terminal prompt enter: sudo ufw enable * To open a port (ssh in this example): sudo ufw allow 22 * Similarly, to close an opened port: sudo ufw deny 22 * To remove a rule, use delete followed by the rule: sudo ufw delete deny 22 * It is also possible to allo. 阅读全文