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:~$
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 默认壁纸历代记
- Ubuntu Remix Cinnamon 20.04 评测:Ubuntu 与 Cinnamon 的完美融合
- 关于Ubuntu 11.10启动提示waiting for the network configuration的问题
- 在 Ubuntu 桌面中使用文件和文件夹
- 从源码安装Mysql/Percona 5.5
- Linux Generating SSH Keys
- ubuntu下chrome无法同步问题解决
- Ubuntu Linux使用体验
- 使用 GNOME 优化工具自定义 Linux 桌面的 10 种方法
- 以Ubuntu 9.04为例 将工作环境迁移到 Linux
- VirtualBox虚拟机XP与宿主机Ubuntu互访共享文件夹
- 从USB安装Ubuntu Server 10.04.3 图文详解
- Ubuntu 15.04 正式版发布下载
- Linux-Ubuntu 10.04安装Cadence-ic610 方法总结图解
- Ubuntu 12.04和Windows 7双系统安装图解
- 开机出现:grub rescue的修复方法
- Ubuntu连接Android真机调试
- 你应该选择 Ubuntu 还是 Fedora?
- 100 个最佳 Ubuntu 应用(中)
- 看看我的Ubuntu Linux截图