File: setup_ssh.sh

package info (click to toggle)
dask.distributed 2024.12.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,588 kB
  • sloc: python: 96,954; javascript: 1,549; sh: 390; makefile: 220
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