Both sides previous revisionPrevious revision | |
labs:remote_access [2024/01/16 03:16] – [Using ssh on the Lab Machines] admin | labs:remote_access [2024/09/09 13:23] (current) – admin |
---|
| |
- Start XQuartz before making an SSH connection. Then, you can use X forwarding with ssh from the built-in Terminal application or from XQuartz's ''xterm'' application. | - Start XQuartz before making an SSH connection. Then, you can use X forwarding with ssh from the built-in Terminal application or from XQuartz's ''xterm'' application. |
- In a terminal (Terminal or xterm), type the command \\ ''ssh -XY yourusername@python.cs.wlu.edu'' | - In a terminal (Terminal or xterm), type the command \\ ''ssh -XY yourusername@hostname.cs.wlu.edu'' |
* where ''yourusername'' is the username of your account. | * where ''yourusername'' is the username of your account and ''hostname'' is one of the lab machine names (e.g., rexx, snobol, turing). |
* The ''-XY'' will allow you to see a graphical program's windows on your local machine. Note that using a GUI application remotely can be slow. You definitely don't want to try to run an application like Eclipse remotely. | * The ''-XY'' will allow you to see a graphical program's windows on your local machine. Note that using a GUI application remotely can be slow. You definitely don't want to try to run an application like Eclipse remotely. |
* Answer "yes" to questions about trusting the machine and storing the key. | * Answer "yes" to questions about trusting the machine and storing the key. |
* You may get an error message about a .Xauthority file that you can safely ignore. | * You may get an error message about a .Xauthority file that you can safely ignore. |
- Try typing ''idle &'' and hitting enter to see if a Python IDE GUI pops up. Note that this can be slow depending on your network connection, especially the first time. If the IDE pops up, it worked! You can quit (close) the GUI (but not the terminal). | - Try typing ''idle &'' and hitting enter to see if a Python IDE GUI pops up. Note that this can be slow depending on your network connection, especially the first time. If the IDE pops up, it worked! You can quit (close) the GUI (but not the terminal). |
- Now, [[#using_ssh_on_the_lab_machines|ssh to a lab machine (See: Using ssh on the Lab Machines)]], so that everyone isn't on the same machine. See [[#machine_names|Machine Names]] for more information about the available machines. | - Now, [[#using_ssh_on_the_lab_machines|ssh to another lab machine (See: Using ssh on the Lab Machines)]], so that everyone isn't on the same machine. See [[#machine_names|Machine Names]] for more information about the available machines. |
| |
If you have trouble using X forwarding, you may need to edit your ssh_config file (typically found at ''/etc/ssh/ssh_config'' or ''~/.ssh/config'') . If ssh_config includes ''#X11Forwarding no'' (or just ''X11Forwarding no''), uncomment the line by removing the leading ''#'' and change it to ''X11Forwarding yes''. | If you have trouble using X forwarding, you may need to edit your ssh_config file (typically found at ''/etc/ssh/ssh_config'' or ''~/.ssh/config'') . If ssh_config includes ''#X11Forwarding no'' (or just ''X11Forwarding no''), uncomment the line by removing the leading ''#'' and change it to ''X11Forwarding yes''. |
- When I ran Xming, it didn't seem like anything happened, but if you click "Show Hidden Icons", you should see the "X" for Xming | - When I ran Xming, it didn't seem like anything happened, but if you click "Show Hidden Icons", you should see the "X" for Xming |
- Run and configure PuTTY: | - Run and configure PuTTY: |
- Enter ''python.cs.wlu.edu'' under 'Host Name' and under 'Saved Sessions'. | - Enter one of the lab machine names, e.g., ''rexx.cs.wlu.edu'', under 'Host Name' and under 'Saved Sessions'. |
- Enable X11: Click on the 'plus' of the Connection category (if it's not already expanded), then the plus of the SSH category, then select X11. Check 'Enable X11 forwarding'. | - Enable X11: Click on the 'plus' of the Connection category (if it's not already expanded), then the plus of the SSH category, then select X11. Check 'Enable X11 forwarding'. |
- Select the 'Session' category, and click on 'Save'. | - Select the 'Session' category, and click on 'Save'. |
- Click Open to connect to python.cs.wlu.edu | - Click Open to connect to the machine you specified above |
- Agree to any questions about trusting the host and accepting the security key. | - Agree to any questions about trusting the host and accepting the security key. |
- Enter your username and password for your W&L account. **Your password will not be displayed.** Keep typing! Hit enter. | - Enter your username and password for your W&L account. **Your password will not be displayed.** Keep typing! Hit enter. |
* Click on "Apps" at the top | * Click on "Apps" at the top |
* Search for "Putty-VI" | * Search for "Putty-VI" |
* Enter a host name, such as ''boole.cs.wlu.edu'' or any of the other lab machines. None of the other fields need to be updated. Click "Open" | * Enter a host name, such as ''turing.cs.wlu.edu'' or any of the other lab machines. None of the other fields need to be updated. Click "Open" |
* Click "yes" to say that you trust the remote host when that dialog box pops up. | * Click "yes" to say that you trust the remote host when that dialog box pops up. |
* Then, enter your username when the prompt says "login as" | * Then, enter your username when the prompt says "login as" |