Skip to content

Instantly share code, notes, and snippets.

@niratama
Last active May 27, 2025 12:46
Show Gist options
  • Save niratama/a1836b51024323841f51f5c844aa0980 to your computer and use it in GitHub Desktop.
Save niratama/a1836b51024323841f51f5c844aa0980 to your computer and use it in GitHub Desktop.
Synology SRMのsshアクセスで公開鍵認証する

Synology SRMのsshアクセスで公開鍵認証する

/etc/ssh/sshd_configによると

AuthorizedKeysFile      /etc/ssh/keys/%u/authorized_keys

なので、/etc/ssh/keys/ユーザー/authorized_keysに公開鍵をおいておけばいい。

外部ストレージ繋いでないとホームディレクトリは/var/services/homes/ユーザーなので

Could not chdir to home directory /var/services/homes/ユーザー: No such file or directory

とか言われるけど気にしない。(もちろんここにディレクトリつくっておけばエラーにならないけど)

たぶん外部ストレージ繋いでユーザーホームサービスを有効化するとここにマウントされるに違いない。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment