Score:0

sftp and ssh password less auth

ag flag

we have created the VM instance on GCP and Google assigned the default user xx we have configured the ssh key we are able to log in without a password and added the new group Sftp yy and added user zz to group unable to do password less ssh and sftp with new user

HBruijn avatar
in flag
SSH keys don't regulate access to a server, they regulate access to a specific account on that server. Authorized keys need to be set up for each account separately.
Score:2
cn flag

If I understand you description correctly you want to be able to password-less ssh [email protected] (which would also allow password-less sftp as user zz) where vm.dom is the address (or fqdn) of the GCP vm.

To allow that you simply need to add the public ssh-key you use to the new users ~/.ssh/authorized_keys on the vm and make sure the permissions are set correctly.

As zz on the vm you could:

test -d ~/.ssh || mkdir ~/.ssh
chmod 700 ~/.ssh
touch ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
cat publickey-file >> ~/.ssh/authorized_keys
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.