- 
		
Recent Posts
 Recent Comments
- CBD for Sale on 浅谈美国老爷子所说的移动申请的DNS加速专利
 - contactgrqgsc on 从openstack近几年发展到国内外云计算环境的不同
 - Davidtaw on ping.pe
 - Александр on ping.pe
 - Jamesled on 浅谈美国老爷子所说的移动申请的DNS加速专利
 
Search
Calendar
November 2025 S M T W T F S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Tags
- AD
 - Ansible
 - CentOS
 - chrony
 - Daily
 - datetimectl
 - DNF
 - DNS
 - Epel
 - ESXi
 - Game
 - Glusterfs
 - H3C
 - H3C R4900 G2
 - Hyper-V
 - iptables
 - k8s
 - k8s-plugin
 - krew
 - kubectl
 - kubernetes
 - LB
 - LB Device
 - Life
 - Linux
 - LoadBlancer Device
 - Netscaler
 - ntp
 - ping.pe
 - pssh
 - Raspyberry Pi
 - RDP
 - salt
 - Saltstack
 - Security
 - server
 - ssh
 - Storage
 - Troubleshooting
 - vSphere
 - Windows
 - 使徒
 - 剧情
 - 国内App
 - 魔界
 
- 
		
Recently
 Comments
- CBD for Sale on 浅谈美国老爷子所说的移动申请的DNS加速专利
 - contactgrqgsc on 从openstack近几年发展到国内外云计算环境的不同
 - Davidtaw on ping.pe
 - Александр on ping.pe
 - Jamesled on 浅谈美国老爷子所说的移动申请的DNS加速专利
 
Access map
Attack map
Tag Archives: pssh
sudo 与重定向符号共用时出现permission denied的处理方案
由于之前在云厂商工作的关系,对于一次性批量操作不是很喜欢使用 ansible或者saltstack操作,而是爱用效率比较高的pssh。 当然,pssh所带来的弊端更多的会局限在sudo上,尤其是带密码的私钥和在使用重定向符号的时候报permission denied的情况,这次我们只share一下关于使用重定向符号return permission denied的解决方案。 # ssh [email protected] -x ‘sudo echo ” */5 * * * * user /bin/bash /opt/auto/testing” >> /etc/crontab’ bash: /etc/crontab: Permission denied 其实最简单的办法就是使用bash -c “” 将要sudo的命令包起来(注意,需要对引号进行转义): ssh [email protected] -x ‘sudo sh -c “echo \” */5 … Continue reading
pssh使用带有密码的私钥登陆在使用-A参数之后报错
pssh使用带有密码的私钥登陆在使用-A参数之后报“tderr: Enter passphrase for key ‘****” 解决方法: 修改 vim /lib/python2.7/site-packages/psshlib/askpass_client.py OS X为: vim /usr/local/Cellar/pssh/2.3.1/lib/python2.7/site-packages/psshlib/askpass_client.py 将第67行的: if not prompt.strip().lower().endswith(‘password:’): 改为 if not ( prompt.strip().lower().endswith(‘password:’) or ‘enter passphrase for key’ in prompt.strip().lower()):