72
78

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ubuntuのssh設定

Posted at

#環境
Ubuntu16.04
Mac OSX El capitan 10.11.5

#sshdのサービスを開始
パッケージの管理を行うためのaptitudeをインストール
$ sudo apt-get install aptitude

aptitudeを使ってsshを導入
$ sudo aptitude install ssh

/etc/ssh/sshd_configを編集し、PermitRootLoginの行を
PermitRootLogin no
に書き換える

$ sudo /etc/init.d/ssh restart
でsshdのサービスを再起動させる

#SSH接続
あとは別のクライアントPCから通常通りSSH接続するだけ
$ ssh user@ipアドレス

72
78
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
72
78

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?