- Supporto
- Supporto Tecnico
- Forum di Supporto
- PRODOTTI
- TELTONIKA
- RUT500
- Connessione da RUT500 ad un Raspberry collegato ad esso
Connessione da RUT500 ad un Raspberry collegato ad esso
- Alessandro Annunziato
-
Autore della discussione
06/03/2018 07:38 #1310
da Alessandro Annunziato
Connessione da RUT500 ad un Raspberry collegato ad esso è stato creato da Alessandro Annunziato
Vorrei effettuare una connessione SSH dal Teltonika RUT500 al Raspberry che e' nella stessa rete. Questo e' possibile dando ssh pi@192.168.1.100 ma il sistema chiede la password mentre io vorrei automatizzare la connessione.
Ho provato a generare la coppia di chiavi e a fornire al server RPI la chiave pubblica ma non funziona ed il Teltonika continua sempre a richiedere la password per ogni comando.
Ho anche provato a fare il contrario, generare la chiave su RPI e provare a collegarmi da RPI al Teltonika ma nuovamente la chiave non viene riconosciuta e la password richiesta.
C'e' modo di effettuare quest automazione ?
grazie
Ho provato a generare la coppia di chiavi e a fornire al server RPI la chiave pubblica ma non funziona ed il Teltonika continua sempre a richiedere la password per ogni comando.
Ho anche provato a fare il contrario, generare la chiave su RPI e provare a collegarmi da RPI al Teltonika ma nuovamente la chiave non viene riconosciuta e la password richiesta.
C'e' modo di effettuare quest automazione ?
grazie
Rispondi a Alessandro Annunziato
- marcom
-
- Offline
06/03/2018 12:19 #1311
da marcom
Marcom S.r.l.
via della Metallurgia, 11
37139 - Verona (VR)
Risposta da marcom al topic Connessione da RUT500 ad un Raspberry collegato ad esso
Buongiorno,
purtroppo SSH non permette di inserire automaticamente la password.
Una possibile procedura da seguire è questa:
Don't use a password. Generate a passphraseless SSH key and push it to your VM.
If you already have an SSH key, you can skip this step… Just hit Enter for the key and both passphrases:
Copy your keys to the target server:
Now try logging into the machine, with ssh 'id@server', and check in:
to make sure we haven’t added extra keys that you weren’t expecting.
Finally check logging in…
You may also want to look into using ssh-agent if you want to try keeping your keys protected with a passphrase.
Oltre non posso assisterla in quanto la problematica indicata non riguarda l'uso comune del router e sembra piuttosto un problema relativo all'interfacciamento con un dispositivo di terze parti.
Cordiali saluti
purtroppo SSH non permette di inserire automaticamente la password.
Una possibile procedura da seguire è questa:
Don't use a password. Generate a passphraseless SSH key and push it to your VM.
If you already have an SSH key, you can skip this step… Just hit Enter for the key and both passphrases:
$ ssh-keygen -t rsa -b 2048
Generating public/private rsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/username/.ssh/id_rsa.
Your public key has been saved in /home/username/.ssh/id_rsa.pub.
Copy your keys to the target server:
$ ssh-copy-id id@server
id@server's password:
Now try logging into the machine, with ssh 'id@server', and check in:
.ssh/authorized_keys
to make sure we haven’t added extra keys that you weren’t expecting.
Finally check logging in…
$ ssh id@server
id@server:~$
You may also want to look into using ssh-agent if you want to try keeping your keys protected with a passphrase.
Oltre non posso assisterla in quanto la problematica indicata non riguarda l'uso comune del router e sembra piuttosto un problema relativo all'interfacciamento con un dispositivo di terze parti.
Cordiali saluti
Marcom S.r.l.
via della Metallurgia, 11
37139 - Verona (VR)