VS Code – ssh remote

Komputer lokalny (cmd)

ssh-keygen -t ed25519 -C "twoj@email.com"

Zapisany klucz publiczny

~/.ssh/id_ed25519.pub

Wklejenie na serwerze

# nano /home/username/.ssh/authorized_keys

# chmod 700 ~/.ssh 
# chmod 600 ~/.ssh/authorized_keys

VS Code – konfiguracja ssh-remote

// edytuj plik `~/.ssh/config` na lokalnym komputerze:

Ctrl+Shift+P
Remote-SSH: Open SSH Configuration File

Host moj-serwer 
  HostName adres-serwera 
  User uzytkownik 
  IdentityFile ~/.ssh/id_ed25519