RaspberryPiをSSHでリモート操作したい
先日RaspberryPi 3 Model Bを買いRaspbianをインストールしました。
自宅のPCからSSH接続をしたところSSH接続は確立しているのですがユーザ名、パスワードがあっているはずなのに認証に失敗します。
RaspberryPi自身からlocalhostでやってみたところ同様に認証に失敗しました。
初心者で調べても同様の状態の解決策を見つけられなかったため質問させていただきました。
以下は実際に行ったことです
・ローカルIPアドレスの固定
・RaspberryPiのSSHを有効に設定
・自宅のPCからRaspberryPiにSSH接続(ユーザ認証失敗)
・RaspberryPi自身からlocalhostでSSH接続(ユーザ認証失敗)
・rootのパスワードの変更
追記 2018/11/13
詳細情報を以下に記載します
ローカルIPアドレスの固定
/etc/dhcpcd.confに次の文を追記
interface eth0 static ip_address=192.168.1.112/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1
RaspberryPiのSSHを有効に設定
raspi-config → Interfacing Options → P2 SSH Enableに設定
RaspberryPiにSSH接続
###自宅のPCから接続
>ssh -v root@192.168.1.112 OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4 debug1: Connecting to 192.168.1.112[192.168.1.112] port 22. debug1: Connecting established. ~省略~ root@198.1681.112's password: debug1:Authentications that cancontinue: publickey, password Permission denied, please try again. debug1: read_passphrase: can't open /dev/tty: No such file or directory
RaspberryPi自身から接続
#ssh -v root@localhost ~省略~ root@localhost's password: debug1: Authentications that can continue: publickey, password Permission denied (publickey,password).
rootのパスワード変更
#passwd
回答4件
あなたの回答
tips
プレビュー