1. sshd默认监听22端口,这个端口我们可以自定义更改,更改/etc/ssh/sshd_config配置文件,port 22 改为 port 1122 ,那么sshd就会监听1122端口了。 2. PuTTY, SecureCRT, Xshell等 3. 需要修改 /etc/sysconfig/ ...
分类:
其他好文 时间:
2019-12-12 15:07:41
阅读次数:
71
一、设置ssh证书登录,禁止root登录useraddnewuserpasswdnewuservim/etc/ssh/sshd_configPermitRootLoginnoRSAAuthenticationyesPubkeyAuthenticationyesPasswordAuthenticationnoClientAliveInterval30ClientAliveCountMax5二、禁止s
分类:
其他好文 时间:
2019-12-11 22:03:26
阅读次数:
145
因为要配置Hadoop集群服务,折腾了好久的ssh免密登录,简直要把人整疯了,在网上看了好多分享,都没搞定,最后看到一篇类似的,加上自己瞎蒙,终于成了,而且是超级简单,现在吐血总结一下。 我的是CentOS8虚拟机,干货来了。 第一步:vim /etc/ssh/sshd_config,将Pubkey ...
分类:
系统相关 时间:
2019-12-10 15:11:21
阅读次数:
103
可能是你开始没有开启SSH服务 1、修改 vim /etc/ssh/sshd_config 找到 PermitRootLogin without passwd 改成 PermitRootLogin yes 2 然后重启 ssh systemctl restart sshd ...
分类:
其他好文 时间:
2019-12-09 01:15:52
阅读次数:
1641
docker pull centosdocker run -it -d --name test-centos1 centosdocker exec -it test-centos1 /bin/bashdocker commit test-centos1 centos_sshd:7.0docker c ...
分类:
其他好文 时间:
2019-12-08 10:27:05
阅读次数:
287
既然要通讯,那么必须有服务器和客户端。本文使用sshd做服务器,scp做客户端。 接受文件的一方必须使用sshd启动并绑定本机局域网端口,如0.0.0.0:22 绑定方法就是配置/etc/ssh/sshd_config这个配置文件,如果A(windows/linux/macos)向B(windows ...
分类:
其他好文 时间:
2019-12-07 12:49:55
阅读次数:
135
为root账户设置密码 切换到root账户 允许远程root账户连接linux ...
分类:
系统相关 时间:
2019-12-06 19:50:41
阅读次数:
110
第1章 /etc目录 1.1 /etc/inittab 1.1.1 查看当前系统的运行级别 1.1.2 修改运行级别 临时修改 1.2 /etc/init.d 服务管理命令存放处 (这是个目录) 1.3 /etc/profile与/etc/bashrc 1.3.1 /etc/profile 环境变量 ...
分类:
系统相关 时间:
2019-12-04 13:25:40
阅读次数:
103
多看看大神的博客 https://blog.csdn.net/tao934798774/article/details/79491951 ip addr 查看ip地址 ifconfig 查看ip地址 chkconfig iptables off 关闭防火墙 chkconfig sshd on 设置开 ...
分类:
系统相关 时间:
2019-12-02 01:12:56
阅读次数:
140
一、用户的类型 1.root管理员:所有权限(r w x) 2.文件拥有者(u):谁创建谁拥有 3.组 (g):用户组 4.其它用户(o):不属于用户组,也不是文件的创建者,不是管理员 5.所有用户(a): u, g , o r--读, w--写, x--执行 r w x 0 0 1==>1 0 1 ...
分类:
系统相关 时间:
2019-12-01 00:14:37
阅读次数:
115