Erik
Erik

Reputation: 14770

Where to store public key for ssh on ubuntu?

I have a nodejs application under git control version and a git account for managing this one?

sudo adduser \
  --system \
  --shell /bin/bash \
  --gecos ‘User managing of git version control’ \
  --group \
  --disabled-password \
  --home /home/git \
  git

Where should I store authorized_keys file

/home/git/authorized_keys

Or

/home/user/authorized_keys

Where user is normal user on my server

Upvotes: 2

Views: 6022

Answers (2)

ajtrichards
ajtrichards

Reputation: 30565

The directory should be at:

/home/git/.ssh/authorized_keys

Upvotes: 1

Krishna Chaitanya P
Krishna Chaitanya P

Reputation: 1314

/home/git/.ssh/authorized_keys

check this link: http://git-scm.com/book/ch4-4.html

Upvotes: 1

Related Questions