File: setup_ssh.sh

package info (click to toggle)
dask.distributed 2022.12.1%2Bds.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,164 kB
  • sloc: python: 81,938; javascript: 1,549; makefile: 228; sh: 100
file content (13 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Enable `ssh localhost` without a password.
# If you change this script, make sure to retest both on Ubuntu and on MacOSX!
# See .github/workflows/ssh_debug.yaml

set -o errexit
set -o nounset
set -o xtrace

mkdir -p ~/.ssh
chmod 700 ~ ~/.ssh
ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh-keyscan -H localhost 127.0.0.1 $(hostname) >> ~/.ssh/known_hosts