1ssh登陆的优化vim/etc/ssh/sshd_config42PermitRootLoginno允许root登录65PermitEmptyPasswordsno允许空密码登录80GSSAPIAuthenticationnosshp122UseDNSnoDNS搜索关闭ssh服务X11转发功能#vi/etc/ssh/sshd_config设置下面为noX11Forwardingno2历史记录,登陆时间,字符集主机操..
分类:
其他好文 时间:
2015-04-03 15:40:21
阅读次数:
200
1.同步yum源的脚本#cat/data/yum_repo/rsync_yum_shell/rsync_yumrepo.sh#!/bin/bash#scriptname:rsync_yumrepo.shRsyncBin="/usr/bin/rsync"RsyncPerm=‘-avrt--delete--no-iconv--bwlimit=100000‘Centos_7_base=‘/data/yum_repo/Centos-7/Base/‘Centos_7_epel=‘/data/yum_repo..
分类:
系统相关 时间:
2015-04-02 06:44:51
阅读次数:
309
纯粹转载记录一下解决方案。原文: http://ask.xmodulo.com/fix-broken-x11-forwarding-ssh.html 简述一下两种解决方案: * 修改/etc/ssh/sshd_config,增加``X11UseLocalhost no`` * 修改/etc/ssh/sshd_config,增...
分类:
其他好文 时间:
2015-03-30 14:44:58
阅读次数:
228
修改sshd_config文件,命令如下: vi /etc/ssh/sshd_config 我的配置文件如下: # Package generated configuration file
# See the sshd_config(5) manpage for details
# What por...
分类:
其他好文 时间:
2015-03-30 12:42:58
阅读次数:
272
首先 先做的就是 修改ssh的默认端口22需要修改文件/etc/ssh/sshd_config使用命令vi /etc/ssh/sshd_config[root@localhost ~]# vi /etc/ssh/sshd_config# $OpenBSD: sshd_config,v 1...
分类:
其他好文 时间:
2015-03-28 17:00:37
阅读次数:
254
自动化运维Ansible特性(1)、noagents:不需要在被管控主机上安装任何客户端;(2)、noserver:无服务器端,使用时直接运行命令即可;(3)、modulesinanylanguages:基于模块工作,可使用任意语言开发模块;(4)、yaml,notcode:使用yaml语言定制剧本playbook;(5)、sshbydefault..
分类:
其他好文 时间:
2015-03-18 18:38:05
阅读次数:
168
Why Devops:用工具替代setup环境时的重复手动劳动;避免手动setup多个环境时产生微小差异。使用脚本部署app。Devops Tools:vagrant +ansibleHow:1. 用vagrant工具批量生成VM,替代手动重复生成VM。2. 用ansible的playbook同时为...
分类:
其他好文 时间:
2015-03-16 22:49:56
阅读次数:
203
用ansible实现较复杂的shell命令:1.ansible-i/tmp/batchtwoall-mshell-a"foriin\`psaux|grepproc_nodemanager|grep-vgrep|awk‘{print\$2}‘\`;doecho\$i;done"-k-uroot
分类:
其他好文 时间:
2015-03-12 15:19:30
阅读次数:
121
本人问题:想通过windows7中的putty直接ssh到kali系统,而默认情况下,kali系统ssh服务没有开启.具体按如下操作进行设置:照以下步骤进行配置和操作:1、修改sshd_config文件,命令为:vi /etc/ssh/sshd_config2、将#PasswordAuthentic...
分类:
Windows程序 时间:
2015-03-11 19:17:18
阅读次数:
4618
1、Ansible内置了一些变量以方便主机之间相互调用各自的变量。这些变量包括:*hostvars允许你访问另一个主机的变量,当然前提是ansible已经收集到这个主机的变量了:group_names:是当前主机所在的group列表groups:是所有inventory的group列表inventory_hostname:是在invento..
分类:
其他好文 时间:
2015-03-11 15:05:07
阅读次数:
174