bugGNU Parallel - Bugs: bug #65679, --(n)onall with sshpass (-S...

 
 

bug #65679: --(n)onall with sshpass (-S myuser:@localhost)

Submitter:  None
Submitted:  Fri 03 May 2024 02:21:35 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 29 Sep 2024 07:54:59 PM UTC, comment #4: 

Tested:

    parallel -S'ssh -oProxyJump=nlv.pi.dk,,64gw nlv.pi.dk' ::: hostname

Convert this to generic names but keep ",,"

Ole Tange <tange>
Group administrator
Tue 28 May 2024 12:37:08 PM UTC, comment #3: 

4//ssh -oProxyCommand="ssh -W %h:%p proxyhost,,otherproxy" user@host:22


Anonymous
Mon 06 May 2024 03:15:39 PM UTC, comment #2: 

    Using password or SSHPASS with --(n)onall exposes the password on the command line, making it visible to local users via ps.

Anonymous
Mon 06 May 2024 02:45:34 PM UTC, comment #1: 

Give a warning:

   Using SSHPASS with --(n)onall exposes the password on the command line, making it visible to local users via ps.

Test with password that contains: ; ' * < > $ & " spcspc ( ) ` ` | !

    -Suser:'`touch  /tmp/trap`;)(|<*&'"'"@host

Anonymous
Fri 03 May 2024 02:21:35 PM UTC, original submission:  

Test this works.

    SSHPASS=foo
    parallel myuser:@host

[@hostgroups/][ncpus/][[user][:[password]]@]host[:port][,...]

@hostgroups - one or more groups this sshlogin belongs to. Multiple groups are separated by '+' (See --hostgroup). Examples: prod, dev+remote

user - user to log in as. Defaults to the current user name. Examples: alice, bob

:password - use password for authentication. If password is omitted use $SSHPASS. If : is omitted use ssh's default authentication. Examples: :mypassword, :

host - hostname or IP address of server. Examples: server01, 10.1.2.3, [2001:470:142:4::a], 2001:470:142:5::116. Ranges of hostnames can be given in [] like this: server[1,3,8-10] (for server1, server3, server8, server9, server10) or server[001,003,008-010] (for server001, server003, server008, server009, server010). With Bash's brace expansion you can do: -S{dev,prod}[001-100] to get -Sdev[001-100] -Sprod[001-100] More [] are allowed: server[1-10].cluster[1-5].example.net

:port - port number to connect to. Examples: :22, :2222. For IPv6 you can use p or # instead of :. Examples: [2001:470:142:4::a]:2222, 2001:470:142:5::116p2222

See --sshloginfile for complete examples.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tange (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-8ccc.
    Corresponding source code