SSH的安装

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:~$

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值