# would require setting a password for user plom otherwise not needed.
sshpass -e scp ~/.ssh/id_rsa.pub root@"${server}":/tmp/authorized_keys
sshpass -e ssh root@"${server}" \
- 'useradd -m plom -s /bin/bash && '\
+ 'useradd -m plom && '\
'mkdir /home/plom/.ssh && '\
'chown plom:plom /home/plom/.ssh && '\
'chown plom:plom /tmp/authorized_keys && '\
ssh root@"${server}" "passwd"
# Set up plom's ~/.ssh/authorized_keys from root's.
-ssh root@"${server}" 'useradd -m plom -s /bin/bash'
+ssh root@"${server}" 'useradd -m plom'
ssh root@"${server}" 'mkdir /home/plom/.ssh'
ssh root@"${server}" 'chown plom:plom /home/plom/.ssh'
ssh root@"${server}" 'cp /root/.ssh/authorized_keys /home/plom/.ssh/'