3
1

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.

www-dataでssh

Last updated at Posted at 2018-09-27

apacheからCGIでsshを実行したかった。CGIを実行してるのはもちろんapacheちゃんだよねー知ってるって!って調べたらwww-dataさんだった。(ubuntu 16.04 LTS)

誰ww

鍵とか作りたくても、su www-dataでなれないし、rootになってからsuしても
This account is currently not available.
って怒られるし、もうどうしたら・・・

と悶々としていたら、

https://qiita.com/Ouvill さんの記事
https://qiita.com/Ouvill/items/02faa51d04b76c60d942

にナイス情報が!

簡単に言うと、sudo -u www-data ssh-keygenなどとすればいいってことで、目からうろこです。

ありがとうございます。

3
1
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?