13angs / lxd-basic

0 stars 0 forks source link

Running docker swarm in lxd #3

Closed 13angs closed 1 year ago

13angs commented 2 years ago

Steps

docker swarm init --advertise-addr 10.195.151.2
docker swarm join-token worker

Make sure to enable password authentication

sudo apt-get install openssh-server

sudo systemctl enable ssh

sudo systemctl start ssh

References

  1. https://docs.docker.com/engine/swarm/swarm-tutorial/
  2. https://www.cyberciti.biz/faq/ubuntu-linux-install-openssh-server/
  3. https://github.com/13angs/private-issues/issues/6#issue-1395441101
  4. https://www.cyberciti.biz/faq/ubuntu-linux-install-openssh-server/
  5. https://phoenixnap.com/kb/ssh-permission-denied-publickey
  6. https://www.geeksforgeeks.org/how-to-create-a-shared-folder-between-two-local-user-in-linux/
  7. https://dockerswarm.rocks/swarmpit/
13angs commented 2 years ago
Permission denied (publickey).

Solution

  1. turn password auth in /etc/ssh/sshd_config
  2. restart the ssh
sudo systemctl restart sshd