Skip to main content

Posts

Showing posts from 2018

Create a Debian user with ssh access

mkdir /home/user1 useradd user1 passwd user1 chsh -s `which bash` user1 ls -al /home/user1/ cp -a /etc/skel/.[a-z]* /home/user1 chown -R user1.user1 /home/user1 Edit file /etc/ssh/sshd_config and add the following content AllowUsers root user1 Save file. usermod -s "/bin/bash" user1 Finally restart the ssh service by service ssh restart