User Tools

Site Tools


addusers

Adding Users to Control

   $ sudo useradd <newuser> -m -d /home/users/<newuser> -p <password> -s /bin/bash
   $ sudo nano /etc/group #Add newuser to appropriate group(s) (usually scratch, wsi)
   $ sudo nano /etc/ssh/sshd_config #Add newuser to AllowUsers line for ssh access
   $ sudo service ssh restart #If given ssh access

Instruct user how to login to control via ssh

   $ ssh -X <newuser>@wsi.staticcling.org -p <port number here>

Instruct user to change their password upon login with

   $ passwd
   
   

Troubleshooting SSH issues

  • Make Sure they are using port 26 if outside the office
  • Make sure they are on the allowed users list in /etc/ssh/sshd_config then run sudo service ssh restart
  • Check that staticcling.org has the right IP
  • Check Denyhosts in /etc/hosts.deny
  • Check Fail2Ban:
  $ sudo iptables -L -n
  $ sudo iptables -D fail2ban-ssh -s <banned_ip> -j DROP
addusers.txt · Last modified: 2022/07/21 06:59 by 127.0.0.1