Skip to main content

Timeline for How to run sudo with parallel ssh

Current License: CC BY-SA 4.0

13 events
when toggle format what by license comment
Aug 22, 2021 at 19:00 history edited AdamKalisz CC BY-SA 4.0
Updated to reflect comment by @chutz
Aug 22, 2021 at 18:43 comment added AdamKalisz Thanks @chutz for the comment, for the others from the bash manpage (read is a built in command): -s Silent mode. If input is coming from a terminal, characters are not echoed. and If no names are supplied, the line read, without the ending delimiter but otherwise unmodified, is assigned to the variable REPLY. The exit status is zero, unless end-of-file is encountered, [...]
Aug 18, 2021 at 13:11 comment added chutz You can avoid all the stty convolution with the following shortcut: echo -n Password:; read -s; echo "$REPLY". Or with bash it is only one command: read -s -p Password:; echo "$REPLY".
Aug 18, 2021 at 13:11 comment added chutz @OleTange echo is a shell builtin so it does not show in the process list.
Sep 25, 2020 at 21:36 comment added Ole Tange The problem is if you have echo $PASS it will be visible for someone running ps aux. It is not a problem if you are the only user on this server.
Jun 11, 2019 at 10:22 comment added AdamKalisz Ok, now I see :-)
Jun 10, 2019 at 23:08 comment added Greg Glockner -x '-tt' instructs pssh to send the -tt parameter to ssh, where it forces a pseudo-terminal allocation. This was necessary to get ssh to receive the password.
Jun 10, 2019 at 21:31 comment added AdamKalisz What does -tt do? I haven't seen this in the manual page (man parallel-ssh on Debian, Ubuntu). The -x option provides SSH connection arguments. A single "string" of arguments to SSH can also be provided with -X.
Jun 6, 2019 at 19:20 comment added Greg Glockner For our Ubuntu 18.04 network, I had to add -x '-tt'; otherwise this was perfect.
S Mar 19, 2019 at 17:06 history suggested Costin Gușă CC BY-SA 4.0
PWD is not a good example because it is already used variable which contains the current directory and it is displayed in PS1 ending up with your typed password in the shell prompt =)). replaced with PASS
Mar 19, 2019 at 16:04 review Suggested edits
S Mar 19, 2019 at 17:06
Dec 12, 2018 at 12:00 history edited AdamKalisz CC BY-SA 4.0
Clarification
Dec 12, 2018 at 11:49 history answered AdamKalisz CC BY-SA 4.0