« Federal Research Public Access Act of 2009 | Main | Panels and Images »
May 07, 2010
OpenSSH server on Ubuntu and access via Mac
Started at this link.
Then loaded openSSH following this link. Although I used a different port and used ufw to configure the firewall:
1) Netstat will print network connections (make sure SSH not already installed?):
$ sudo netstat -tulpn
2) Install openSSH:
$ sudo apt-get install openssh-server
3) Check to see if SSH is running (program=sshd)
$ sudo netstat -tulpn
$ sudo ufw allow [port]
4) Tighten security a tiny bit:
a) Edit config file
$ sudo nano /etc/ssh/sshd_config
b) Change port number
c) Control users who can login: AllowUsers [user1] [user2]
d) restart ssh server
$ sudo /etc/init.d/ssh restart
5) Open port:
$ sudo ufw allow [port]
6) Install LogWatch to monitor activity on the Ubuntu Box. Note, this seems to install PostFix (email server) if not already present.
$ sudo apt-get update
$ sudo apt-get install logwatch
This command will print out a report:
$ logwatch
Logs kept here:
$ cd /var/log
7) Set system emails to forward to your email account:
$ sudo nano /etc/aliases
Add this line:
root: joblow@google.net
Other notes:
Then, to ssh in (from Mac):
Applications > Utilities > Terminal
$ ssh [username]@[hostname.umich.edu] -p [port]
I toyed with this link but decided not to go there. Don't fix it if it is not broken.
Posted by kkwaiser at May 7, 2010 12:05 PM