1. cd /etc/ssh 进入ssh目录下,然后ls列出文件列表,我的如下: moduli ssh_config sshd_config ssh_host_rsa_key ssh_host_rsa_key.pub ssh_import_id ssh_config是ssh的配置,sshd_conf... ...
分类:
系统相关 时间:
2019-08-06 01:08:39
阅读次数:
188
1、登录主机,如果是普通账户先切换至root账号 su root 2、编缉/etc/hosts.allow文件 vi /etc/hosts.allow 允许内容 书写格式(改成自自需要的IP或IP段) ssh允许单个ip sshd : 192.168.220.1 ssh允许ip段 sshd :192 ...
分类:
Web程序 时间:
2019-08-05 18:58:51
阅读次数:
168
开机关机 终端利用ssh登录远程服务器 yum install ssh service sshd start ssh -p 50022 my@127.0.0.1 输入密码: my@127.0.0.1: -p 后面是端口 my 是服务器用户名 127.0.0.1 是服务器 ip 回车输入密码即可登录 ...
分类:
系统相关 时间:
2019-08-04 15:04:40
阅读次数:
116
生成公钥私钥 每次连接都要输入密码 linux-秘钥生成 上面链接配置文件名字错了,应为vim /etc/ssh/sshd_config 操作命令过程: [root@mcw1 ~]# ls .ssh/ls: cannot access .ssh/: No such file or directory ...
分类:
其他好文 时间:
2019-07-30 22:03:54
阅读次数:
135
1、修改配置: (**关于配置文件详解:https://www.cnblogs.com/shaoerwei/articles/7594879.html) wq保存退出 2、重启服务: 3、添加开机启动: (**关于update-rc.d命令详解:https://blog.csdn.net/freek ...
分类:
系统相关 时间:
2019-07-30 10:50:42
阅读次数:
182
今天讲了远程配置服务sshd 以及apsche静态网站 1970年,作为互联网前身的ARPANET(阿帕网)已初具雏形, 并开始向非军用部门开放,许多大学和商业部门开始接入。 虽然彼时阿帕网的规模(只有4台主机联网运行)还不如现在的局域网成熟, 但是它依然为网络技术的进步打下了扎实的基础。 SELi ...
分类:
系统相关 时间:
2019-07-29 00:50:06
阅读次数:
125
chapter02 - 03 1、 分别用cat \tac\nl三个命令查看文件/etc/ssh/sshd_config文件中的内容,并用自己的话总计出这三个文档操作命令的不同之处?[root@localhost ~]# cat /etc/ssh/sshd_config 查看内容正着看[root@l ...
分类:
其他好文 时间:
2019-07-27 09:16:56
阅读次数:
64
1、分别用cat \tac\nl三个命令查看文件/etc/ssh/sshd_config文件中的内容,并用自己的话总计出这三个文档操作命令的不同之处? [root@localhost ~]# cat /etc/ssh/sshd_config [root@localhost ~]# tac /etc/ ...
分类:
系统相关 时间:
2019-07-26 21:33:54
阅读次数:
377
[root@localhost /]# cat /etc/ssh/sshd_config [root@localhost /]# tac /etc/ssh/sshd_config [root@localhost /]# nl /etc/ssh/sshd_config cat命令是查询文件内容 tac ...
分类:
其他好文 时间:
2019-07-26 16:10:51
阅读次数:
89
公司的Linux服务器都是通过一台JumpServer跳转的。个人使用Jumpserver(开源跳板机系统)时,有时候由于需要上传、下载文件很不方便。而由于配置关系,一般情况无法使用SecureCRT直接通过ssh连接到服务器。所以个人设置了/etc/ssh/sshd_config。允许我的电脑(电... ...
分类:
系统相关 时间:
2019-07-24 13:33:42
阅读次数:
172