apt-get install openssh-server


lsof -i :22


cp /etc/ssh/sshd_config ~
less /etc/ssh/sshd_config


UseDNS no


PermitRootLogin no


ssh -p2222 chrisbinnie@DebianBox.tld


Protocol 2


ClientAliveInterval 1200
ClientAliveCountMax 0


PermitEmptyPasswords no


chown root:root /home


Subsystem sftp internal-sftp
Match User chrisbinnie
  ChrootDirectory /home
  AllowTCPForwarding no
  X11Forwarding no
  ForceCommand internal-sftp


chmod 700 /home/<your-home-dir>


Compression yes
Cipher blowfish
Ciphers blowfish-cbc,aes128-cbc,3des-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc