Ermmm ok so i’m having a heck of time with this. I’m setup a stack to deploy rails apps. Whenever I create a new user there is no .ssh folder in their home folder… also i have tried a lot of stuff besides just copying the .ssh folder from dhc-user. What are the proper steps for setting up a user on Ubuntu Trusty 14.04 on dreamhost?
I’ve tried everything and tried debugging the log but it was futile. I started the instance over again. I just did
sudo adduser username sudo adduser username sudo su username
what has been recommended is
the result is no bueno
#=> /usr/local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed #=> /usr/local/bin/ssh-copy-id: INFO: 2 key(s) remain to be installed -- if you are prompted now it is to install the new keys #=> Permission denied (publickey).
instead of Permission Denied (publickey) it’s supposed to prompt me for my password! I have tried everything under the sun to fix this
when i try
ssh username@IPADDRESS #=> Permission denied (publickey).
Now lets check /var/log/auth.log both attempts result in the same error
sshd: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key sshd: Connection closed by IPADDRESS [preauth]
when I get the ssh_host_ed25519_key file it’s blank so i run
sudo ssh-keygen -A
Now lets try to log in again!
sshd: Connection closed by IPADDRESS [preauth]
sudo vi /etc/ssh/ssh_host_ed25519_key reveals that a key has been generated but what now? when i google the error there is a timeout waiting for authentication supposedly
There is no .ssh folder in my new users home directory. what am i supposed to do?
before i removed the instance before the current one i did append a port to the user and ssh login access in a configuration file and it still failed with the same errors. From what I know you’re not supposed to manually create an .ssh folder. should i copy it from dhc-user and be done with it?