ubuntu Lucid(10.04) 修改ssh端口

2011-12-12 阅读 175

ubuntu Lucid(10.04) 修改ssh端口

<pre class="brush:bash;">    vi /etc/ssh/sshd_config
```
<p>
	修改port 22 为 port 端口号</p>
<p>
	Protocol 2 /仅允许使用SSH2</p>
<p>
	PubkeyAuthentication yes /*启用PublicKey认证</p>
<div>
	PasswordAuthentication no /*禁止密码验证登录</div>

ubuntu Lucid(10.04) 修改 ssh 端口

更新于 2023年03月28日