Linux:ubuntu 14.04.3 LTS
cat /tmp/passfile
ABCxyz123
Run Code Online (Sandbox Code Playgroud)
sshpass -f /tmp/passfile parallel-ssh -I -A -h hostlist.txt "sudo -S ls -l /root" < /tmp/passfile
并且该方法在谷歌讨论此处描述groups.google 输出误差为:
[1] 01:07:25 [FAILURE] 10.0.4.194 Exited with error code 255
[2] 01:07:25 [FAILURE] 10.0.4.205 Exited with error code 255
Run Code Online (Sandbox Code Playgroud)
在远程服务器中,我试图连接它的 /var/log/auth.log 有以下消息
Sep 24 19:20:52 ubu1401 sshd[5765]: Accepted password for ubuntu from 10.0.4.1 port 55019 ssh2
Sep 24 19:20:52 ubu1401 sshd[5765]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)
Sep 24 19:21:26 ubu1401 sshd[5765]: pam_unix(sshd:session): session closed …
Run Code Online (Sandbox Code Playgroud) netstat -ntp
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 8216172 0 127.0.0.1:9503 127.0.0.1:47654 ESTABLISHED 34390/python
tcp 0 4189632 127.0.0.1:47686 127.0.0.1:9503 ESTABLISHED 34379/python
tcp 8203139 0 127.0.0.1:9503 127.0.0.1:47666 ESTABLISHED 34390/python
tcp 8179744 0 127.0.0.1:9503 127.0.0.1:47686 ESTABLISHED 34390/python
Run Code Online (Sandbox Code Playgroud)
我已阅读此处发布的答案,但仍然对程序是否将队列堆叠在发送或接收队列中存有疑问。例如。下面两行 netstat -ntp 输出中发生了什么?processId 34390 是否在发送或接收时获取排队数据以及队列发生在哪个端口号?
tcp 8216172 0 127.0.0.1:9503 127.0.0.1:47654 ESTABLISHED 34390/python
tcp 0 4189632 127.0.0.1:47686 127.0.0.1:9503 ESTABLISHED 34379/python
Run Code Online (Sandbox Code Playgroud) 我试图从 /dev/sda 上现有的未分配空间创建新分区,但每当我设置“开始和结束”时,我都会得到location outside of device error
. 以下是完整输出:
root@server01:/#parted /dev/sda GNU Parted 3.2 使用 /dev/sda 欢迎使用 GNU Parted!输入“help”可查看命令列表。(parted) print free
型号:VMware 虚拟磁盘 (scsi) 磁盘 /dev/sda:2199GB 扇区大小(逻辑/物理):512B/512B 分区表:gpt 磁盘标志:
Number Start End Size File system Name Flags
2 17.4kB 1049kB 1031kB bios_grub
1 1049kB 25.8GB 25.8GB zfs
25.8GB 25.8GB 3584B Free Space
3 25.8GB 36.5GB 10.7GB zfs
4 36.5GB 47.2GB 10.7GB zfs
5 47.2GB 1100GB 1052GB zfs
9 1100GB 1100GB 8392kB
1100GB 2199GB 1100GB Free Space
(parted) mkpart
Partition …
Run Code Online (Sandbox Code Playgroud)