您的位置:首页 > 其它

SSH的安装

2015-09-22 15:29 309 查看
1.输入sudo apt-get install ssh

kens@ubuntu:~$sudo apt-get install ssh

2.选择继续,输入Y

After this operation, 3,450 kB of additional disk space will be used.

Do you want to continue? [Y/n] Y

3.更改原始配置:

kens@ubuntu:~$ sudo vim /etc/ssh/sshd_config

–>>更改之前

LoginGraceTime 120

PermitRootLogin without-password

StrictModes yes

–>>更改之后

LoginGraceTime 120

PermitRootLogin yes

StrictModes yes

4.重启SSH服务

kens@ubuntu:~$ /etc/init.d/ssh restart

5.SSH 帮助文档

kens@ubuntu:~$ ssh –help

unknown option – -

usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]

[-D [bind_address:]port] [-E log_file] [-e escape_char]

[-F configfile] [-I pkcs11] [-i identity_file]

[-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec]

[-O ctl_cmd] [-o option] [-p port]

[-Q cipher | cipher-auth | mac | kex | key]

[-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port]

[-w local_tun[:remote_tun]] [user@]hostname [command]

kens@ubuntu:~$
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ubuntu ssh 安装