teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

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

2018/11/13 14:22

投稿

Fng
Fng

スコア13

title CHANGED
File without changes
body CHANGED
@@ -10,4 +10,49 @@
10
10
  ・RaspberryPiのSSHを有効に設定
11
11
  ・自宅のPCからRaspberryPiにSSH接続(ユーザ認証失敗)
12
12
  ・RaspberryPi自身からlocalhostでSSH接続(ユーザ認証失敗)
13
- ・rootのパスワードの変更
13
+ ・rootのパスワードの変更
14
+
15
+ ---
16
+ **追記 2018/11/13**
17
+ 詳細情報を以下に記載します
18
+ ## ローカルIPアドレスの固定
19
+ /etc/dhcpcd.confに次の文を追記
20
+ ```
21
+ interface eth0
22
+ static ip_address=192.168.1.112/24
23
+ static routers=192.168.1.1
24
+ static domain_name_servers=192.168.1.1
25
+
26
+ ```
27
+ ## RaspberryPiのSSHを有効に設定
28
+ raspi-config → Interfacing Options → P2 SSH Enableに設定
29
+
30
+ ## RaspberryPiにSSH接続
31
+ ###自宅のPCから接続
32
+ ```
33
+
34
+ >ssh -v root@192.168.1.112
35
+
36
+ OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4
37
+ debug1: Connecting to 192.168.1.112[192.168.1.112] port 22.
38
+ debug1: Connecting established.
39
+ ~省略~
40
+ root@198.1681.112's password:
41
+ debug1:Authentications that cancontinue: publickey, password
42
+ Permission denied, please try again.
43
+ debug1: read_passphrase: can't open /dev/tty: No such file or directory
44
+
45
+ ```
46
+
47
+ ### RaspberryPi自身から接続
48
+ ```
49
+ #ssh -v root@localhost
50
+ ~省略~
51
+ root@localhost's password:
52
+ debug1: Authentications that can continue: publickey, password
53
+ Permission denied (publickey,password).
54
+ ```
55
+ ## rootのパスワード変更
56
+ ```
57
+ #passwd
58
+ ```