File: sshpass.conf.example

package info (click to toggle)
clustershell 1.9.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,228 kB
  • sloc: python: 20,978; makefile: 149
file content (19 lines) | stat: -rw-r--r-- 726 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Example configuration file for ssh password auth support with sshpass.
#
# Copy as sshpass.conf to enable and edit the paths below as needed.
# sshpass needs to be installed on your operating system.
#
# To activate sshpass mode, use clush -m sshpath ...

[mode:sshpass]
password_prompt: yes
ssh_path: /usr/bin/sshpass /usr/bin/ssh
scp_path: /usr/bin/sshpass /usr/bin/scp
ssh_options: -oBatchMode=no -oStrictHostKeyChecking=no

# Another mode that reads the password from a local file instead
[mode:sshpass-file]
password_prompt: no
ssh_path: /usr/bin/sshpass -f /root/remotepasswordfile /usr/bin/ssh
scp_path: /usr/bin/sshpass -f /root/remotepasswordfile /usr/bin/scp
ssh_options: -oBatchMode=no -oStrictHostKeyChecking=no