Prospective Students DOE Research Seminars People Current Students Tech Support

Connecting To Department Of Electronics Internal Systems Using SSH Tunneling

To connect to internal systems at the department of Electronics you need to use a system called 'Ssh Tunneling'. Only one tool is needed to do this 'Putty'. It can be downloaded here. Remember where you save it to.

Windows Users:

If you are running Windows you can download this registry file here to your harddrive. After you download it double click on it. You will be asked "Are you sure you want to add ..." just click yes.

Now open putty double click on doe and skip to step 3

Unix command line Users:

Setup 'Ssh Tunneling'

2. Once you have down loaded PuTTY ,double click on the program to open the program and type in one of the names listed below into the "Host Name"(
portal.doe.carleton.ca
entry.doe.carleton.ca
enter.doe.carleton.ca
ssh.doe.carleton.ca
IP: 134.117.9.9
) box and make sure you check the 'SSH' button since the default setting is for 'telnet' which we do not offer for security reasons.

ssh_tunnel_one (36K)

Fill in doe under 'Saved Sessions' and click 'Save'

Click on 'Tunnels'. Which is under 'Connection'-->'SSH'

ssh_tunnel_two (36K)

To configure to connect to the mailfilter
Enter Source Port 3180
Destination 134.117.9.7:80
click 'Local'
click 'Add'

To configure WinSCP
Enter Source Port 3122
Destination 134.117.9.45:22
click 'Local'
click 'Add'

Now Configure WinSCP

To configure to connect to the Mail Server
Enter Source Port 3110
Destination 134.117.9.46:110
click 'Local'
click 'Add'

Enter Source Port 3125
Destination 134.117.9.46:25
click 'Local'
click 'Add'

3. Go back to 'Sessions' and click save to make sure you don't lose your work.

Click on 'Open'.

Your first time connecting to your site via SSH you will receive the following dialog. It is ok to get this dialog the first time and as long as you are consistent with the domain name you use to connect to the site (i.e. always use johnsmith.com and not www.johnsmith.com or vice versa) you should not see this dialog again.

ssh_tunnel_three (22K)

Just click 'Yes' at this point.

4. At this point you should be connected to your site via SSH and you will be prompted for your username and password

NOTE: You must keep the connection open to use the tunnels.

5. Once you have finishes connecting, we have to make sure that the 'tunneling' is working.

  1. Run Web browser (Explorer, Netscape)
  2. Enter: http://localhost:3180
At this point you should be looking at the mailfilter home page.

If you have any problems please contact tech support.


Connect to different services

You can use the system to connect to many different service on DOE
Source Port Destination Service
3122 134.117.9.45:22 or brazil.doe.carleton.ca:22 brazil's ssh'scp port
3180 134.117.9.7:80 or mailfilter.doe.carleton.ca:80 mailfilter's web port
1711 134.117.9.137:1711 or fiji.doe.carleton.ca:1711 Matlab 1st license port
1712 134.117.9.137:1712 or fiji.doe.carleton.ca:1712 Matlab 2nd license port

Configuring WinSCP

Download Here
winscp_config (32K)

Unix sftp

How to use sftp using an ssh tunnel

#Create ssh tunnel to a network computer
ssh -L 3122:134.117.9.101:22 -N ssh.doe.carleton.ca

#sftp to localhost port 3122
sftp -o'Port=3122' localhost

Unix rsync

How to set up file synchronisation between two computers
using Linux based rsync -- 

#Create ssh tunnel to a network computer 
ssh -L 3122:134.117.9.101:22 -N ssh.doe.carleton.ca

#Add key to ssh-agent (assuming you have setup rsa keys with ssh-keygen
#at both ends and it's working)
ssh-add

#Do rsync:
#Copies files from your office account to home
rsync -avz --rsh="ssh -p 3122" localhost:$HOME/rsyncdir/ rsyncdir

#Copies files from home to office account:
rsync -avz --rsh="ssh -p 3122" rsyncdir/ localhost:$HOME/rsyncdir/

Matlab License Server

How to retreive a Matlab license from a remote computer

#Create ssh tunnel for the License Ports
ssh -L 1711:134.117.9.137:1711 -N ssh.doe.carleton.ca
ssh -L 1712:134.117.9.137:1712 -N ssh.doe.carleton.ca

#Change Matlab license file to use localhost on the "SERVER" line.
#Or change the Matlab license variable to point to 1711@localhost.
#See Matlab installation notes for more information.






			
Top of page
© 2011 Carleton University 1125 Colonel By Drive, Ottawa, ON, K1S 5B6 Canada | (613) 520-7400