Raspberry pi立ち上げ-Ubuntu編(SSH接続)-(3)
UbuntuへのSSH接続設定.
SSHクライアントのパッケージ確認.
$ dpkg -l | grep ssh
こんな感じで入っていればOK.
ii openssh-client 1:7.6p1-4ubuntu0.3 arm64 secure shell (SSH) client, for secure access to remote machines
ii openssh-server 1:7.6p1-4ubuntu0.3 arm64 secure shell (SSH) server, for secure access from remote machines
ii openssh-sftp-server 1:7.6p1-4ubuntu0.3 arm64 secure shell (SSH) sftp server module, for SFTP access from remote machines
ii ssh-import-id 5.7-0ubuntu1.1 all securely retrieve an SSH public key and install it locally
入っていなければインストール.
$ sudo apt-get install openssh-server
本当にSSHサーバが稼働しているか確認.
$ ps -ax | grep ssh
稼働していれば下記のように見える.
1297 ? Ss 0:00 /usr/sbin/sshd -D
2183 ? Ss 0:00 sshd: ubuntu [priv]
2268 ? S 0:00 sshd: ubuntu@pts/0
2283 ? Ss 0:00 sshd: ubuntu [priv]
2366 ? S 0:00 sshd: ubuntu@notty
2367 ? Ss 0:00 /usr/lib/openssh/sftp-server
2415 pts/0 S+ 0:00 grep --color=auto ssh
puttyとWinSCPからアクセスできればOK.
この記事が気に入ったらサポートをしてみませんか?