Ich wollte mit gerade ein Image für einen Odroid U3 basteln. Das Image läuft, nur habe ich keinen Zugriff über SSH.
Was habe ich bisher gemacht:
Image auf SD-Karte geschrieben.
Sie müssen registriert sein, um Links zu sehen.
Dieses Image ist minimalistisch und enthält praktisch nix. Ist von User meveric, aus dem Odroid-Forum.
Code:
apt-get update && apt-get upgrade
Code:
tasksel
Hier habe ich nur ssh server ausgewählt.
Du musst Regestriert sein, um das angehängte Bild zusehen.
Danach habe ich dafür gesorgt, das ich root-login bekomme, also die /etc/ssh/ssh_config entsprechend geändert.
Tastatur, tzdata un locales entsprechend eingestellt.
Anschließend noch openssh-server installiert.
Code:
apt-get install openssh-server
Neu gestartet.
Code:
ifconfig
Der Odroid hat die 192.168.1.143 bekommen. Wenn ich folgenden Befehl in die Konsole eingebe ist die IP auch da.
Ab jetzt versuche ich von meinem Dektop zuzugreifen.
Code:
for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done
192.168.1.1 UP
192.168.1.3 UP
192.168.1.21 UP
192.168.1.58 UP
192.168.1.85 UP
192.168.1.95 UP
192.168.1.100 UP
192.168.1.116 UP
[COLOR=#0000ff]192.168.1.143 UP[/COLOR]
Jetzt komme ich aber trotzdem nicht per SSh auf den odroid
Code:
ssh root@192.168.1.143
[COLOR=#ff0000]ssh: connect to host 192.168.1.143 port 22: Connection refused[/COLOR]
Wie kann ich Das ändern? Z.Z. habe ich noch Tastatur und Maus dran, das soll aber nicht so bleiben.
Ich lese noch was von ssh-Key, werde aber nicht so richtig schlau, da mein Englisch nicht so tolle ist.
SSH login: As default Debian Jessie restricts access via SSH for the user root. The SSH login via password is disabled. You can change this by editing /etc/ssh/sshd_config and outcomment the line "PermitRootLogin without-password" which tells the system password login via SSH for root is forbidden. Any other user you create can be accessed via SSH, this option only restricts access for the user root. You can also create a ssh-key for your user and transfer the key to your ODROID and give root access via that SSH key. That way you are allowed to connect via SSH to the user root as well since only password logins are forbidden by default. A small guide on how to create an SSH key can be found here: h**ps://www.digitalocean.com/community/ ... sh-keys--2
ping 192.168.1.143
PING 192.168.1.143 (192.168.1.143) 56(84) bytes of data.
64 bytes from 192.168.1.143: icmp_seq=1 ttl=64 time=2.05 ms
64 bytes from 192.168.1.143: icmp_seq=2 ttl=64 time=1.10 ms
64 bytes from 192.168.1.143: icmp_seq=3 ttl=64 time=1.01 ms
64 bytes from 192.168.1.143: icmp_seq=4 ttl=64 time=0.997 ms
64 bytes from 192.168.1.143: icmp_seq=5 ttl=64 time=1.04 ms
64 bytes from 192.168.1.143: icmp_seq=6 ttl=64 time=0.949 ms
64 bytes from 192.168.1.143: icmp_seq=7 ttl=64 time=1.03 ms
MfG
P.S. Keine Ahnung warum, aber plötzlich gehts.
Code:
[COLOR=#008000]root@odroid[/COLOR]:[COLOR=#0000ff]/home/odroid[/COLOR]# ssh root@192.168.1.143
The authenticity of host '192.168.1.143 (192.168.1.143)' can't be established.
ECDSA key fingerprint is f8:8c:0a:5f:c9:f8:a1:93:dd:5b:f7:6a:b2:31:52:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.143' (ECDSA) to the list of known hosts.
root@192.168.1.143's password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Jan 1 02:12:47 2000
[COLOR=#008000]root@odroid-jessie[/COLOR]:~#
Danach habe ich dafür gesorgt, das ich root-login bekomme, also die /etc/ssh/ssh_config entsprechend geändert.
Tastatur, tzdata un locales entsprechend eingestellt. Anschließend noch openssh-server installiert.