Tuesday, June 18, 2013

Exercise 1

   Today I have learned how to use SSH for connection and data communication. While I was browsing the handouts, I noticed that it uses ssh-keygen -t rsa. It is the same command that we are using on connecting to github in CMSC 128. So I thought that this exercise would be a bit easy.

   First, we are tasked to create a new user on the computer and log on it (shown in figure 1 and 2). Afterwards we are asked to connect to PAHO which is a part of the UPLB Intranetwork. During this part I did not encounter any problem.


Fig 1. Creating a New User


Fig 2. Logging in

   After Logging in , we generated our own keygen using the command ssh-keygen -t rsa, then followed by ssh-copy-id <username>@172.16.7.88. This was done in order to access the remote server without inputting a password. In this part I have encountered a problem, because it showed an error message that the Agent responsible for handling the connection cannot connect me to the remote server. I transferred to another workstation for me to accomplish the task 3. As Sir Alfonso said maybe someone played with the configuration or there is some problem with my Workstation. 
Fig 3a. Generating Key


Fig 3b. Logging In using a password-less approach

    After having successfully solved the problem, we tried to broadcast messages using wall and echo

Fig 4. Broadcasting using wall and echo

    Finally, we were asked to start a conversation with another person. In this part we used the write command. It is somehow similar to Erlang when i took CMSC 124, where we can chat using our IP Addresses.

Fig 5. Chatting

Question: After setting up a passwordless login in your workstation to the remote computer, if you log in to the remote server using different workstation, would it still be passwordless?

Answer: In theory I think that the answer would be No, because the public key was saved on the specific work station that you used to create a public key for passwordless access. After I verified it, I was right that the passwordless login was removed.