CS346 Login Information

Total Page:16

File Type:pdf, Size:1020Kb

CS346 Login Information

CS346 Login Information

Utilities Needed

Since you will be uploading files to a server you will need to download Filezilla or some other FTP/SFTP client.

If you are using Windows you'll want to download and install putty.exe

CS346 Linux Server

Connecting via ssh

From Windows: 1. Launch putty.exe 2. In the Host Name (or IP address) textbox type: cs346.cs.uwosh.edu 3. In the Port textbox type: 1022 4. Make sure the connection type radio button is set to SSH 5. In the Saved Sessions textbox type: CS 346 (optional, but handy for repeated use) 6. Click the Save button (When you launch putty next time you can click on CS 346 in the Saved Sessions box and click Load to load your settings) 7. Click the Open button 8. Your login on the Linux server is your campus e-mail username. 9. Your password on the Linux server is the letter ‘p’ followed by the last six digits of your student ID#. Ex: p123456

From Linux/Unix: 1. Open a terminal window 2. Type the following command: ssh -p 1022 -l cs346.cs.uwosh.edu 3. Accept the RSA key, you MUST do this in order to get access to the server 4. Type in your password (default is the letter ‘p’ followed by the last six digits of your student ID#. Ex: p123456) and you should be in.

Using Filezilla for FTP

- The instructions should be the same for both Windows and Linux/Unix users.

1. Launch Filezilla. 2. In the Host field type sftp://cs346.cs.uwosh.edu 3. Enter your username and password (letter ‘p’ followed by the last six digits of your student ID#) 4. In the Port field type 1022 5. Click on Quick Connect. 6. The connection should put you at your home location in the Remote Site field. You are welcome to FTP files up to that location if you want, but you won't be able to test them on the server unless you change the location of the remote site (or copy the files over once you've SSH'd into the server) to /var/www/students//. You shouldn't be able to get into anyone else's directories so please test that and let me know if you can as that is a security risk. If you can get into someone else's, then that means they can get into yours as well which we don't want. 7. Click and drag files from your Local site folders to the remote site folders you've selected and take note of any errors that pop up in the bottom pane.

Using the MySQL server

1. You will need to be SSH'd into the server in order to perform these commands so please re-read the SSH section now if you need to. 2. At the terminal window type: mysql -u -p 3. When prompted enter your password (again, last six digits of Student ID by default) 4. At the mysql> prompt type: show databases; 5. You should see your username in the list of databases. 6. At the mysql> prompt type: use ; 7. The mysql> prompt should respond with 'Changing Database' and at this point you should be ready to run SQL queries to create tables and insert/retrieve data.

Windows Server

Using Filezilla for FTP

- The instructions should be the same for both Windows and Linux/Unix users.

1. Launch Filezilla. 2. In the Host field type sftp://141.233.176.1 3. Enter your username and password (your password will be the same as it is on the Windows network, if you haven’t successfully logged in on a Windows machine in one of the labs recently, you will not be able to connect to the server) 4. In the Port field type 1022 5. Click on Quick Connect. 6. The connection should put you at your directory inside the /var/www/ directory. You will upload your files to this directory or its subdirectories. This is different than on the Linux server. You shouldn't be able to get into anyone else's directories so please test that and let me know if you can as that is a security risk. If you can get into someone else's, then that means they can get into yours as well which we don't want. 7. Click and drag files from your Local site folders to the remote site folders you've selected and take note of any errors that pop up in the bottom pane.

Recommended publications