Ja, ich habe schon verstanden, dass es den nicht gibt aber dieser Hinweis kann ja mehrere Gründe haben ☺ Dachte ich zumindest.
pc@PC-User:~$ ls -lha .ssh/
total 20K
drwxrwxr-x 2 pc pc 4,0K Aug 31 18:26 .
drwxr-xr-x 29 pc pc 4,0K Aug 31 21:03 ..
-rw------- 1 pc pc 3,3K Aug 31 18:12 id_rsa
-rw-r--r-- 1 pc pc 745 Aug 31 18:12 id_rsa.pub
-rw-r--r-- 1 pc pc 222 Aug 31 18:26 known_hosts
Der Key müsste id_rsa sein, d.h. ich muss den Befehl zu ssh -i .ssh/id_rsa pc@xxx.xxx.xx.x abändern ?
Habe es mal ausprobiert aber es tut sich dann nichts. Mit dem Befehl, der diese Fehlerzeile liefert, allerdings auch nicht. Wird wahrscheinlich damit zusammenhängen, dass ich mich nicht mehr im selben Netz, sondern zuhause befinde ? Wenn sich der Rechner, auf den ich zugreifen möchte, im Ruhezustand befindet, geht das dann überhaupt ?
Anleitung: https://www.thomas-krenn.com/de/wiki/OpenSSH_Public_Key_Authentifizierung_unter_Ubuntu#Am_Server
Details:
pc@PC-User:~$ uname -a
Linux PC-User 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
pc@PC-User:~$ lspci -nnk | grep -i net -A2
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Acer Incorporated [ALI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1025:0983]
Kernel driver in use: r8169
Kernel modules: r8169
03:00.0 Network controller [0280]: Intel Corporation Wireless 3165 [8086:3165] (rev 81)
Subsystem: Intel Corporation Dual Band Wireless AC 3165 [8086:4010]
Kernel driver in use: iwlwifi
pc@PC-User:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 004: ID 04f2:b526 Chicony Electronics Co., Ltd
Bus 001 Device 003: ID 8087:0a2a Intel Corp.
Bus 001 Device 007: ID 045e:077d Microsoft Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pc@PC-User:~$ usb-devices
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh=12
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=04.04
S: Manufacturer=Linux 4.4.0-34-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:14.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 7 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=045e ProdID=077d Rev=01.44
S: Manufacturer=Microsoft
S: Product=Comfort Mouse 6000
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
T: Bus=01 Lev=01 Prnt=01 Port=04 Cnt=02 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=8087 ProdID=0a2a Rev=00.01
C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
T: Bus=01 Lev=01 Prnt=01 Port=06 Cnt=03 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=04f2 ProdID=b526 Rev=22.06
S: Manufacturer=SunplusIT INC.
S: Product=HD WebCam
C: #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
I: If#= 1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
T: Bus=01 Lev=01 Prnt=01 Port=07 Cnt=04 Dev#= 5 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1
P: Vendor=0bda ProdID=0129 Rev=39.60
S: Manufacturer=Generic
S: Product=USB2.0-CRW
S: SerialNumber=20100201396000000
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=06 Prot=50 Driver=rtsx_usb
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 6
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev=04.04
S: Manufacturer=Linux 4.4.0-34-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:14.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
pc@PC-User:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
pc@PC-User:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search localdomain
pc@PC-User:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 PC-User
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
pc@PC-User:~$ ifconfig -a
enp2s0 Link encap:Ethernet HWaddr 30:65:ec:93:94:b6
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:27500 errors:0 dropped:0 overruns:0 frame:0
TX packets:27500 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:2568739 (2.5 MB) TX bytes:2568739 (2.5 MB)
wlp3s0 Link encap:Ethernet HWaddr e0:94:67:ff:c2:97
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::9366:3e0f:be18:86da/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1424861 errors:0 dropped:0 overruns:0 frame:0
TX packets:797203 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2047097414 (2.0 GB) TX bytes:90530122 (90.5 MB)
pc@PC-User:~$ iwconfig
wlp3s0 IEEE 802.11abgn ESSID:"o2-WLAN64"
Mode:Managed Frequency:5.18 GHz Access Point: A0:E4:CB:73:9B:66
Bit Rate=433.3 Mb/s Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=47/70 Signal level=-63 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:1 Invalid misc:6836 Missed beacon:0
enp2s0 no wireless extensions.
lo no wireless extensions.
pc@PC-User:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlp3s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp3s0
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp3s0
pc@PC-User:~$ arp -av
o2.box (192.168.1.1) at a0:e4:cb:73:9b:63 [ether] on wlp3s0
Entries: 1 Skipped: 0 Found: 1
pc@PC-User:~$ ip neigh show
192.168.1.1 dev wlp3s0 lladdr a0:e4:cb:73:9b:63 REACHABLE
fe80::1 dev wlp3s0 lladdr a0:e4:cb:73:9b:63 router REACHABLE
pc@PC-User:~$ cat /var/lib/NetworkManager/NetworkManager.state
[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
pc@PC-User:~$ cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false
pc@PC-User:~$ cat /etc/udev/rules.d/70-persistent-net.rules | egrep -i 'device|sub' -A3
cat: /etc/udev/rules.d/70-persistent-net.rules: No such file or directory
pc@PC-User:~$ ping -c 2 $(route -n | grep UG | awk {'print $2'})
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=3.59 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=2.47 ms
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 2.473/3.032/3.591/0.559 ms
pc@PC-User:~$ ping -c 2 www.ubuntuusers.de
PING ubuntuusers.de (213.95.41.4) 56(84) bytes of data.
64 bytes from ubuntuusers.de (213.95.41.4): icmp_seq=1 ttl=58 time=28.2 ms
64 bytes from ubuntuusers.de (213.95.41.4): icmp_seq=2 ttl=58 time=28.0 ms
--- ubuntuusers.de ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 28.087/28.172/28.258/0.188 ms
pc@PC-User:~$ ping -c 2 213.95.41.4
PING 213.95.41.4 (213.95.41.4) 56(84) bytes of data.
64 bytes from 213.95.41.4: icmp_seq=1 ttl=58 time=27.9 ms
64 bytes from 213.95.41.4: icmp_seq=2 ttl=58 time=28.9 ms
--- 213.95.41.4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 27.963/28.458/28.953/0.495 ms