Udayan Maurya
Udayan Maurya

Reputation: 13

create password for user with only ssh key

I have user on my linux machine. The user logs in using an ssh key. User does not have a password. I want to create a password for this user, as password is required to access an application (R-studio server) I am trying to run.

Upvotes: 0

Views: 270

Answers (2)

sumitya
sumitya

Reputation: 2691

As per requirement:- ssh -t udayan@udayan_maurya_machine passwd

you can give password at the time of login into machine via ssh

Upvotes: 0

Júlio Dias
Júlio Dias

Reputation: 92

To create password for your user, your can use: sudo passwd yourUser

Upvotes: 1

Related Questions