...
Logins are only available from the CNF Thin systems or CNF Windows systems. JetStream logins are additionally available from the public Internet.
You will receive an ssh private key for login.
...
- Login to the remote AWS server.
Set your separate VNC password with the following command:
Code Block language bash vncpasswd
Do not set a View Only password.
Start your VNC server with the following commandas follows:
Code Block language bash [centos@ip-10-92-204-76 ~]$ vncserver New 'ip-10-92-204-76.ec2.internal:1 (centos)' desktop is ip-10-92-204-76.ec2.internal:1 Starting applications specified in /home/centos/.vnc/xstartup Log file is /home/centos/.vnc/ip-10-92-204-76.ec2.internal:1.log
Make note of the display number output from the above command. In the above example, the display number is '1' ... denoted by the ':1' in the "desktop is" line of the output.
- Determine the VNC port number. The VNC port number is 5900 + the display number. In the example above, this would be 5900 + 1 = port 5901 .
- Port forward VNC from your local computer to the remote system. There are several ways to do this:
Start a new ssh session with using the -L option: EG -L 5901:localhost:5901
Code Block language bash ssh -L <portnumber>:localhost:<portnumber> -Y -i </path/to/private_key_file.pem> <username>@<ip_address>
In the existing ssh session from Linux or Mac, type in the following characters:
~C
This will bring up the ssh command prompt at which you can start the port forward:Code Block language bash ssh> -L5901:localhost:5901 Forwarding port
- Start a new Putty connection with the port forward in place:
- Expand Connection - SSH and select Tunnels
- For source port, enter in the port number you determined above
- For destination, enter in localhost:<port number>
EG localhost:5901 - Click "Add"
- Add a port forward to your existing Putty session
- Click the icon at the top left of the Putty window
- From the menu, select "Change Settings"
- Go to COnnection - SSH - Tunnels
- For source port, enter in the port number you determined above
- For destination, enter in localhost:<port number>
- Click "Apply"
Connecting with VNC
- If you have not already done so, use the "Initial VNC Setup" instructions to start a VNC server.
- If you have not already done so, use the "Initial VNC Setup" instructions to add a port forward to your ssh/Putty session.
- Using vnc software of your choice, connect to: localhost:<port number>
- Enter in your VNC password.
Transferring Files
The lab transfer share is mounted as /cnflab , the same as on the CNF Conversion Computers and CNF Thin computers. Keep in mind disk space is limited on the Lab Transfer Share – do not use this share for large files. Instead, use SFTP to transfer files from any computer on the CNF network to the AWS conversion cloud. From the AWS conversion cloud, you can SFTP out to remote.cnf.cornell.edu or to jeol9500.cnf.cornell.edu for the JEOL9500 .
...