質問編集履歴

1

詳細情報が抜けていたため追記しました。よろしくおねがいします。

2018/11/13 14:22

投稿

Fng
Fng

スコア13

test CHANGED
File without changes
test CHANGED
@@ -23,3 +23,93 @@
23
23
  ・RaspberryPi自身からlocalhostでSSH接続(ユーザ認証失敗)
24
24
 
25
25
  ・rootのパスワードの変更
26
+
27
+
28
+
29
+ ---
30
+
31
+ **追記 2018/11/13**
32
+
33
+ 詳細情報を以下に記載します
34
+
35
+ ## ローカルIPアドレスの固定
36
+
37
+ /etc/dhcpcd.confに次の文を追記
38
+
39
+ ```
40
+
41
+ interface eth0
42
+
43
+ static ip_address=192.168.1.112/24
44
+
45
+ static routers=192.168.1.1
46
+
47
+ static domain_name_servers=192.168.1.1
48
+
49
+
50
+
51
+ ```
52
+
53
+ ## RaspberryPiのSSHを有効に設定
54
+
55
+ raspi-config → Interfacing Options → P2 SSH Enableに設定
56
+
57
+
58
+
59
+ ## RaspberryPiにSSH接続
60
+
61
+ ###自宅のPCから接続
62
+
63
+ ```
64
+
65
+
66
+
67
+ >ssh -v root@192.168.1.112
68
+
69
+
70
+
71
+ OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4
72
+
73
+ debug1: Connecting to 192.168.1.112[192.168.1.112] port 22.
74
+
75
+ debug1: Connecting established.
76
+
77
+ ~省略~
78
+
79
+ root@198.1681.112's password:
80
+
81
+ debug1:Authentications that cancontinue: publickey, password
82
+
83
+ Permission denied, please try again.
84
+
85
+ debug1: read_passphrase: can't open /dev/tty: No such file or directory
86
+
87
+
88
+
89
+ ```
90
+
91
+
92
+
93
+ ### RaspberryPi自身から接続
94
+
95
+ ```
96
+
97
+ #ssh -v root@localhost
98
+
99
+ ~省略~
100
+
101
+ root@localhost's password:
102
+
103
+ debug1: Authentications that can continue: publickey, password
104
+
105
+ Permission denied (publickey,password).
106
+
107
+ ```
108
+
109
+ ## rootのパスワード変更
110
+
111
+ ```
112
+
113
+ #passwd
114
+
115
+ ```