- ls ~/.ssh
- ssh -v host locale
- sudo systemctl status ssh
- sudo apt install openssh-server
- sudo nano /etc/ssh/sshd_config
- START
- sudo /etc/init.d/ssh start
- sudo service ssh start
- sudo systemctl start ssh
- STOP
- sudo /etc/init.d/ssh stop
- sudo service ssh stop
- sudo systemctl stop ssh
- RESTART
- sudo /etc/init.d/ssh restart
- sudo service ssh restart
- sudo systemctl restart ssh
- STATUS
- sudo /etc/init.d/ssh status
- sudo service ssh status
- sudo systemctl status ssh
- ssh-keygen -f “/home/fr/.ssh/known_hosts” -R “192.168.2.40”
- ———————————————————————————
- https://turbolab.it/server-1224/guida-come-disattivare-login-ssh-password-ubuntu-server-linux-654
- https://kb.iu.edu/d/aews
- https://docs.rockylinux.org/it/guides/security/ssh_public_private_keys/
- https://guide.debianizzati.org/index.php/OpenSSH:_file_di_configurazione
- ———————————————————————————
- Raspberrypi.com_SSH Remote-access
- —————-raspy
- hostname -I
- nmcli device show (Network Manager)
- ping raspberrypi.local supports multicast DNS)
- sudo nmap -sn 192.168.1.0/24
- sudo touch /boot/firmware/ssh
- sudo reboot
- Configure SSH without a password
- ~/.ssh/id_rsa.pub
- ls ~/.ssh (per vedere se ci sono le chiavi private e epubbliche)
- ssh-keygen
- Aggiungi la chiave SSH al tuo elenco di identità SSH
- eval “$(ssh-agent -s)”
- ssh-add ~/.ssh/id_rsa
- Copia una chiave pubblica sul tuo Raspberry Pi
- ssh-copy-id @
- Copia manualmente una chiave pubblica sul tuo Raspberry Pi SERVER
- su server
- mkdir .ssh
- chmod 700 .ssh
- Sul tuo computer abituale , usa scpper copiare la tua chiave pubblica in un file denominato .ssh/authorized_keyssul tuo Raspberry Pi:
- scp .ssh/id_rsa.pub @:.ssh/authorized_keys
- Il comando sopra presuppone che tu non abbia mai autorizzato alcuna chiave per accedere al tuo Raspberry Pi. Se hai precedentemente aggiunto almeno una chiave, dovresti invece aggiungere una nuova riga contenente la chiave pubblica alla fine del authorized_keysfile per preservare le tue chiavi esistenti.
- Quando richiesto, inserisci la password del tuo account utente sul Raspberry Pi.
- Quindi, sul tuo Raspberry Pi , configura i permessi per il authorized_keysfile:
- chmod 644 .ssh/authorized_keys
- Ora puoi connetterti al tuo Raspberry Pi senza inserire una password.
- —————-raspy
- ———————————————————————————
- Wiki.debian.org_it_SSH
- apt install openssh-client
- apt install openssh-server
- I principali file di configurazione sono nella directory /etc/ssh :
- ssh_config : file di configurazione del client
- sshd_config : file di configurazione del server
- A partire da Bullseye, i file di configurazione sono letti anche dalle seguenti sottodirectory:
- /etc/ssh/ssh_config.d/*.conf : file di configurazione del client
- /etc/ssh/sshd_config.d/*.conf : file di configurazione del serve
- Rigenerare le chiavi dell’host
- rm /etc/ssh/ssh_host_*
- dpkg-reconfigure openssh-server
- Per generare la chiave si usa il programma ssh-keygen
- ssh-keygen -t rsa ( in ~/.ssh – viene richiesta una passphrase)
- Si può copiare la propria chiave pubblica su un host remoto usando il comando ssh-copy-id
- ssh-copy-id -i ~/.ssh/id_rsa.pub $remote_user@$remote_host
- Ora ci si può connettere semplicemente all’host remoto e verrà richiesta la passphase
- SERVER
- service ssh restart
- sshd -T | sort
- ———————————————————————————
- Ubuntu.com_Community_SSH
- /etc/ssh/ssh_config
- env | grep -i ssh (# Controllare se ssh-agent e’ in esecuzione)
- ssh -v localhost (verifica se ssh gira in locale)
- ps -A | grep sshd (verifica il demone se gira)
- Ubuntu.com_service-openssh
- Ubuntu.com_SSH/OpenSSH/Configuring
- https://wiki.ubuntu-it.org/InternetRete/DesktopRemoto/OpenSsh
- Wiki.ubuntu-it.org/InternetRete/DesktopRemoto/OpenSsh
- —————————-APP
- scp $file_sorgente $utente_remoto@$host_remoto:$file_destinazione
- scp .ssh/id_rsa.pub @:.ssh/authorized_keys
- scp .ssh/id_rsa.pub fra<192.168.2.40:.ssh/id_rsa.pub
- —————————-APP
- https://help.ovhcloud.com/csm/it-dedicated-servers-creating-ssh-keys?id=kb_article_view&sysparm_article=KB0043384
- Cloud.ibm.com_ssh-keys
- It.wikipedia.org_Secure_Shell
- Orvietolinux.it_Connessione-ssh-ubuntu
- Html.it_guida-ad-ssh-il-protocollo-di-rete/
- Guide.debianizzati.org_OpenSSH
- Cyberciti.biz/faq/create-ssh-config-file-on-linux-unix/
- Ssh.com/academy/ssh/command
- Phoenixnap.com/kb/ssh-to-connect-to-remote-server-linux-or-windows
- Geeksforgeeks.org/ssh-command-in-linux-with-examples/
- Tutorialspoint.com/common-ssh-commands-in-linux-with-examples
- Linuxblog.io/ssh-command-in-linux/
- Operavps.com/docs/main-ssh-commands-in-linux/
- Javatpoint.com/ssh-linux
- Blog.robertelder.org/what-is-ssh/
- Data-flair.training/blogs/ssh-command-in-linux/
- Supporthost.com/it/connessione-ssh/
- Orvietolinux.it/guide-linux/40-networking/208-connessione-ssh-ubuntu
- Cyberciti.biz/faq/how-to-install-ssh-on-ubuntu-linux-using-apt-get
- ionos.it/digitalguide/server/configurazione/ubuntu-ssh
