{"action":"created","comment":{"url":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/comments/234435346","pull_request_review_id":176081720,"id":234435346,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDQzNTM0Ng==","diff_hunk":"@@ -0,0 +1,111 @@\n+\t�������� �������\r\n+\r\n+1.1. SSH to host 35.228.120.217 using username and password, provided to you in private chat. Log out from remotehost\r\n+\r\n+[yuri@localhost ~]$ ssh shipiu@35.228.120.217\r\n+The authenticity of host '35.228.120.217 (35.228.120.217)' can't be established.\r\n+ECDSA key fingerprint is SHA256:dgVulx3MOrxjhF69TIw8G7TSeyV36IZMZhPpMA+o4mI.\r\n+ECDSA key fingerprint is MD5:31:9c:84:18:91:e6:28:6f:ca:86:c0:47:b7:45:a1:ff.\r\n+Are you sure you want to continue connecting (yes/no)? yes\r\n+Warning: Permanently added '35.228.120.217' (ECDSA) to the list of known hosts.\r\n+shipiu@35.228.120.217's password: \r\n+Last login: Tue Nov  6 19:15:46 2018 from 46.229.218.249\r\n+[shipiu@new-students-ssh ~]$ logout\r\n+\r\n+1.2 Generate new ssh key-pair on your localhost with name \"hw-5\" (keys should be created in ~/.ssh folder)\r\n+\r\n+[yuri@localhost .ssh]$ ssh-keygen ##creating a new ssh key-pair in ~/.ssh\r\n+Generating public/private rsa key pair.\r\n+Enter file in which to save the key (/home/yuri/.ssh/id_rsa): hw-5\r\n+Enter passphrase (empty for no passphrase):\r\n+Enter same passphrase again:\r\n+Your identification has been saved in hw-5.\r\n+Your public key has been saved in hw-5.pub.\r\n+The key fingerprint is:\r\n+SHA256:vNegiGxDmX1n3AcGHLHqNyOGfWpxoN02p9kdFNNl7dE yuri@localhost.localdomain\r\n+The key's randomart image is:\r\n++---[RSA 2048]----+\r\n+|         .+o   .*|\r\n+|          .o  ooE|\r\n+|          . o  +.|\r\n+|     + ..o o .. .|\r\n+|    + .oSo= ...  |\r\n+|   o ..*o==o...  |\r\n+|    = o B+**.. . |\r\n+|   . . ..*oo. .  |\r\n+|       ..        |\r\n++----[SHA256]-----+\r\n+[yuri@localhost .ssh]$ ls #checking what have been created\r\n+hw-5  hw-5.pub  known_hosts\r\n+\r\n+1.3 Set up key-based authentication, so that you can ssh to remotehost without password\r\n+\r\n+[yuri@localhost .ssh]$ ssh-copy-id -i ~/.ssh/hw-5.pub shipiu@35.228.120.217\r\n+/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: \"/home/yuri/.ssh/h                                                                             w-5.pub\"\r\n+/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter                                                                              out any that are already installed\r\n+/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompt                                                                             ed now it is to install the new keys\r\n+shipiu@35.228.120.217's password:\r\n+\r\n+Number of key(s) added: 1\r\n+\r\n+Now try logging into the machine, with:   \"ssh 'shipiu@35.228.120.217'\"\r\n+and check to make sure that only the key(s) you wanted were added.\r\n+\r\n+1.4 SSH to remotehost without password. Log out from remotehost\r\n+\r\n+[yuri@localhost .ssh]$ ssh -i /home/yuri/.ssh/hw-5 shipiu@35.228.120.217\r\n+Last login: Thu Nov 15 00:10:22 2018 from 95-27-41-100.broadband.corbina.ru\r\n+[shipiu@new-students-ssh ~]$ logout\r\n+Connection to 35.228.120.217 closed.\r\n+\r\n+1.5 Create ssh config file so that you can ssh to remotehost simply running `ssh remotehost`. As a result provide output of command `cat ~/.ssh/config`\r\n+\r\n+[yuri@localhost .ssh]$ vim config\r\n+\r\n+Host remotehost\r\n+Hostname 35.228.120.217\r\n+User shipiu\r\n+IdentityFile ~/.ssh/hw-5\r\n+\r\n+[yuri@localhost .ssh]$ chmod 644 config ##only with these rules config started working on my localhost\r\n+[yuri@localhost .ssh]$ ssh remotehost\r\n+Last login: Thu Nov 15 14:10:55 2018 from 91.238.230.13\r\n+[shipiu@new-students-ssh ~]$\r\n+\r\n+1.6. Using command line utility (curl or telnet) verify that there are some webserver running on port 8080 of IP 10.166.0.2. Notice that 10.166.0.2 is a private network IP so you can access it only from the same network (when you're on remotehost, that runs in the same private network). Log out from remotehost\r\n+\r\n+[yuri@localhost ~]$ ssh remotehost\r\n+Last login: Thu Nov 15 14:24:46 2018 from 91.238.230.13\r\n+[shipiu@new-students-ssh ~]$ curl -v telnet://10.166.0.2:8080\r","path":"5.1 HW Yuri Shipitsyn.txt","position":79,"original_position":79,"commit_id":"588b3f66fb3ba1b4e4491b04234e0a031cf5ac52","original_commit_id":"588b3f66fb3ba1b4e4491b04234e0a031cf5ac52","user":{"login":"alant94","id":28366730,"node_id":"MDQ6VXNlcjI4MzY2NzMw","avatar_url":"https://avatars0.githubusercontent.com/u/28366730?v=4","gravatar_id":"","url":"https://api.github.com/users/alant94","html_url":"https://github.com/alant94","followers_url":"https://api.github.com/users/alant94/followers","following_url":"https://api.github.com/users/alant94/following{/other_user}","gists_url":"https://api.github.com/users/alant94/gists{/gist_id}","starred_url":"https://api.github.com/users/alant94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alant94/subscriptions","organizations_url":"https://api.github.com/users/alant94/orgs","repos_url":"https://api.github.com/users/alant94/repos","events_url":"https://api.github.com/users/alant94/events{/privacy}","received_events_url":"https://api.github.com/users/alant94/received_events","type":"User","site_admin":false},"body":"Using only this command you won't see the result of your request to webserver.\r\nI recommend to use just `curl`","created_at":"2018-11-18T09:33:44Z","updated_at":"2018-11-18T09:34:25Z","html_url":"https://github.com/yurgent-s/devops-epam/pull/4#discussion_r234435346","pull_request_url":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/comments/234435346"},"html":{"href":"https://github.com/yurgent-s/devops-epam/pull/4#discussion_r234435346"},"pull_request":{"href":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/4","id":231749362,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNzQ5MzYy","html_url":"https://github.com/yurgent-s/devops-epam/pull/4","diff_url":"https://github.com/yurgent-s/devops-epam/pull/4.diff","patch_url":"https://github.com/yurgent-s/devops-epam/pull/4.patch","issue_url":"https://api.github.com/repos/yurgent-s/devops-epam/issues/4","number":4,"state":"open","locked":false,"title":"Homework 5","user":{"login":"yurgent-s","id":44782560,"node_id":"MDQ6VXNlcjQ0NzgyNTYw","avatar_url":"https://avatars3.githubusercontent.com/u/44782560?v=4","gravatar_id":"","url":"https://api.github.com/users/yurgent-s","html_url":"https://github.com/yurgent-s","followers_url":"https://api.github.com/users/yurgent-s/followers","following_url":"https://api.github.com/users/yurgent-s/following{/other_user}","gists_url":"https://api.github.com/users/yurgent-s/gists{/gist_id}","starred_url":"https://api.github.com/users/yurgent-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurgent-s/subscriptions","organizations_url":"https://api.github.com/users/yurgent-s/orgs","repos_url":"https://api.github.com/users/yurgent-s/repos","events_url":"https://api.github.com/users/yurgent-s/events{/privacy}","received_events_url":"https://api.github.com/users/yurgent-s/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-17T20:18:50Z","updated_at":"2018-11-18T09:34:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e5b2ec0b2e14283d39878c8d48b8802f77e3600","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/4/commits","review_comments_url":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/4/comments","review_comment_url":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yurgent-s/devops-epam/issues/4/comments","statuses_url":"https://api.github.com/repos/yurgent-s/devops-epam/statuses/588b3f66fb3ba1b4e4491b04234e0a031cf5ac52","head":{"label":"yurgent-s:hw-5","ref":"hw-5","sha":"588b3f66fb3ba1b4e4491b04234e0a031cf5ac52","user":{"login":"yurgent-s","id":44782560,"node_id":"MDQ6VXNlcjQ0NzgyNTYw","avatar_url":"https://avatars3.githubusercontent.com/u/44782560?v=4","gravatar_id":"","url":"https://api.github.com/users/yurgent-s","html_url":"https://github.com/yurgent-s","followers_url":"https://api.github.com/users/yurgent-s/followers","following_url":"https://api.github.com/users/yurgent-s/following{/other_user}","gists_url":"https://api.github.com/users/yurgent-s/gists{/gist_id}","starred_url":"https://api.github.com/users/yurgent-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurgent-s/subscriptions","organizations_url":"https://api.github.com/users/yurgent-s/orgs","repos_url":"https://api.github.com/users/yurgent-s/repos","events_url":"https://api.github.com/users/yurgent-s/events{/privacy}","received_events_url":"https://api.github.com/users/yurgent-s/received_events","type":"User","site_admin":false},"repo":{"id":156718782,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY3MTg3ODI=","name":"devops-epam","full_name":"yurgent-s/devops-epam","private":false,"owner":{"login":"yurgent-s","id":44782560,"node_id":"MDQ6VXNlcjQ0NzgyNTYw","avatar_url":"https://avatars3.githubusercontent.com/u/44782560?v=4","gravatar_id":"","url":"https://api.github.com/users/yurgent-s","html_url":"https://github.com/yurgent-s","followers_url":"https://api.github.com/users/yurgent-s/followers","following_url":"https://api.github.com/users/yurgent-s/following{/other_user}","gists_url":"https://api.github.com/users/yurgent-s/gists{/gist_id}","starred_url":"https://api.github.com/users/yurgent-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurgent-s/subscriptions","organizations_url":"https://api.github.com/users/yurgent-s/orgs","repos_url":"https://api.github.com/users/yurgent-s/repos","events_url":"https://api.github.com/users/yurgent-s/events{/privacy}","received_events_url":"https://api.github.com/users/yurgent-s/received_events","type":"User","site_admin":false},"html_url":"https://github.com/yurgent-s/devops-epam","description":"DevOps homework in EPAM","fork":false,"url":"https://api.github.com/repos/yurgent-s/devops-epam","forks_url":"https://api.github.com/repos/yurgent-s/devops-epam/forks","keys_url":"https://api.github.com/repos/yurgent-s/devops-epam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yurgent-s/devops-epam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yurgent-s/devops-epam/teams","hooks_url":"https://api.github.com/repos/yurgent-s/devops-epam/hooks","issue_events_url":"https://api.github.com/repos/yurgent-s/devops-epam/issues/events{/number}","events_url":"https://api.github.com/repos/yurgent-s/devops-epam/events","assignees_url":"https://api.github.com/repos/yurgent-s/devops-epam/assignees{/user}","branches_url":"https://api.github.com/repos/yurgent-s/devops-epam/branches{/branch}","tags_url":"https://api.github.com/repos/yurgent-s/devops-epam/tags","blobs_url":"https://api.github.com/repos/yurgent-s/devops-epam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yurgent-s/devops-epam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yurgent-s/devops-epam/git/refs{/sha}","trees_url":"https://api.github.com/repos/yurgent-s/devops-epam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yurgent-s/devops-epam/statuses/{sha}","languages_url":"https://api.github.com/repos/yurgent-s/devops-epam/languages","stargazers_url":"https://api.github.com/repos/yurgent-s/devops-epam/stargazers","contributors_url":"https://api.github.com/repos/yurgent-s/devops-epam/contributors","subscribers_url":"https://api.github.com/repos/yurgent-s/devops-epam/subscribers","subscription_url":"https://api.github.com/repos/yurgent-s/devops-epam/subscription","commits_url":"https://api.github.com/repos/yurgent-s/devops-epam/commits{/sha}","git_commits_url":"https://api.github.com/repos/yurgent-s/devops-epam/git/commits{/sha}","comments_url":"https://api.github.com/repos/yurgent-s/devops-epam/comments{/number}","issue_comment_url":"https://api.github.com/repos/yurgent-s/devops-epam/issues/comments{/number}","contents_url":"https://api.github.com/repos/yurgent-s/devops-epam/contents/{+path}","compare_url":"https://api.github.com/repos/yurgent-s/devops-epam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yurgent-s/devops-epam/merges","archive_url":"https://api.github.com/repos/yurgent-s/devops-epam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yurgent-s/devops-epam/downloads","issues_url":"https://api.github.com/repos/yurgent-s/devops-epam/issues{/number}","pulls_url":"https://api.github.com/repos/yurgent-s/devops-epam/pulls{/number}","milestones_url":"https://api.github.com/repos/yurgent-s/devops-epam/milestones{/number}","notifications_url":"https://api.github.com/repos/yurgent-s/devops-epam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yurgent-s/devops-epam/labels{/name}","releases_url":"https://api.github.com/repos/yurgent-s/devops-epam/releases{/id}","deployments_url":"https://api.github.com/repos/yurgent-s/devops-epam/deployments","created_at":"2018-11-08T14:27:14Z","updated_at":"2018-11-08T14:44:08Z","pushed_at":"2018-11-17T20:18:51Z","git_url":"git://github.com/yurgent-s/devops-epam.git","ssh_url":"git@github.com:yurgent-s/devops-epam.git","clone_url":"https://github.com/yurgent-s/devops-epam.git","svn_url":"https://github.com/yurgent-s/devops-epam","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"yurgent-s:master","ref":"master","sha":"178e8fc44e5ddacdd06100a97afce8a352d50a18","user":{"login":"yurgent-s","id":44782560,"node_id":"MDQ6VXNlcjQ0NzgyNTYw","avatar_url":"https://avatars3.githubusercontent.com/u/44782560?v=4","gravatar_id":"","url":"https://api.github.com/users/yurgent-s","html_url":"https://github.com/yurgent-s","followers_url":"https://api.github.com/users/yurgent-s/followers","following_url":"https://api.github.com/users/yurgent-s/following{/other_user}","gists_url":"https://api.github.com/users/yurgent-s/gists{/gist_id}","starred_url":"https://api.github.com/users/yurgent-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurgent-s/subscriptions","organizations_url":"https://api.github.com/users/yurgent-s/orgs","repos_url":"https://api.github.com/users/yurgent-s/repos","events_url":"https://api.github.com/users/yurgent-s/events{/privacy}","received_events_url":"https://api.github.com/users/yurgent-s/received_events","type":"User","site_admin":false},"repo":{"id":156718782,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY3MTg3ODI=","name":"devops-epam","full_name":"yurgent-s/devops-epam","private":false,"owner":{"login":"yurgent-s","id":44782560,"node_id":"MDQ6VXNlcjQ0NzgyNTYw","avatar_url":"https://avatars3.githubusercontent.com/u/44782560?v=4","gravatar_id":"","url":"https://api.github.com/users/yurgent-s","html_url":"https://github.com/yurgent-s","followers_url":"https://api.github.com/users/yurgent-s/followers","following_url":"https://api.github.com/users/yurgent-s/following{/other_user}","gists_url":"https://api.github.com/users/yurgent-s/gists{/gist_id}","starred_url":"https://api.github.com/users/yurgent-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurgent-s/subscriptions","organizations_url":"https://api.github.com/users/yurgent-s/orgs","repos_url":"https://api.github.com/users/yurgent-s/repos","events_url":"https://api.github.com/users/yurgent-s/events{/privacy}","received_events_url":"https://api.github.com/users/yurgent-s/received_events","type":"User","site_admin":false},"html_url":"https://github.com/yurgent-s/devops-epam","description":"DevOps homework in EPAM","fork":false,"url":"https://api.github.com/repos/yurgent-s/devops-epam","forks_url":"https://api.github.com/repos/yurgent-s/devops-epam/forks","keys_url":"https://api.github.com/repos/yurgent-s/devops-epam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yurgent-s/devops-epam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yurgent-s/devops-epam/teams","hooks_url":"https://api.github.com/repos/yurgent-s/devops-epam/hooks","issue_events_url":"https://api.github.com/repos/yurgent-s/devops-epam/issues/events{/number}","events_url":"https://api.github.com/repos/yurgent-s/devops-epam/events","assignees_url":"https://api.github.com/repos/yurgent-s/devops-epam/assignees{/user}","branches_url":"https://api.github.com/repos/yurgent-s/devops-epam/branches{/branch}","tags_url":"https://api.github.com/repos/yurgent-s/devops-epam/tags","blobs_url":"https://api.github.com/repos/yurgent-s/devops-epam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yurgent-s/devops-epam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yurgent-s/devops-epam/git/refs{/sha}","trees_url":"https://api.github.com/repos/yurgent-s/devops-epam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yurgent-s/devops-epam/statuses/{sha}","languages_url":"https://api.github.com/repos/yurgent-s/devops-epam/languages","stargazers_url":"https://api.github.com/repos/yurgent-s/devops-epam/stargazers","contributors_url":"https://api.github.com/repos/yurgent-s/devops-epam/contributors","subscribers_url":"https://api.github.com/repos/yurgent-s/devops-epam/subscribers","subscription_url":"https://api.github.com/repos/yurgent-s/devops-epam/subscription","commits_url":"https://api.github.com/repos/yurgent-s/devops-epam/commits{/sha}","git_commits_url":"https://api.github.com/repos/yurgent-s/devops-epam/git/commits{/sha}","comments_url":"https://api.github.com/repos/yurgent-s/devops-epam/comments{/number}","issue_comment_url":"https://api.github.com/repos/yurgent-s/devops-epam/issues/comments{/number}","contents_url":"https://api.github.com/repos/yurgent-s/devops-epam/contents/{+path}","compare_url":"https://api.github.com/repos/yurgent-s/devops-epam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yurgent-s/devops-epam/merges","archive_url":"https://api.github.com/repos/yurgent-s/devops-epam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yurgent-s/devops-epam/downloads","issues_url":"https://api.github.com/repos/yurgent-s/devops-epam/issues{/number}","pulls_url":"https://api.github.com/repos/yurgent-s/devops-epam/pulls{/number}","milestones_url":"https://api.github.com/repos/yurgent-s/devops-epam/milestones{/number}","notifications_url":"https://api.github.com/repos/yurgent-s/devops-epam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yurgent-s/devops-epam/labels{/name}","releases_url":"https://api.github.com/repos/yurgent-s/devops-epam/releases{/id}","deployments_url":"https://api.github.com/repos/yurgent-s/devops-epam/deployments","created_at":"2018-11-08T14:27:14Z","updated_at":"2018-11-08T14:44:08Z","pushed_at":"2018-11-17T20:18:51Z","git_url":"git://github.com/yurgent-s/devops-epam.git","ssh_url":"git@github.com:yurgent-s/devops-epam.git","clone_url":"https://github.com/yurgent-s/devops-epam.git","svn_url":"https://github.com/yurgent-s/devops-epam","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/4"},"html":{"href":"https://github.com/yurgent-s/devops-epam/pull/4"},"issue":{"href":"https://api.github.com/repos/yurgent-s/devops-epam/issues/4"},"comments":{"href":"https://api.github.com/repos/yurgent-s/devops-epam/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yurgent-s/devops-epam/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/yurgent-s/devops-epam/statuses/588b3f66fb3ba1b4e4491b04234e0a031cf5ac52"}},"author_association":"OWNER"}}
{"actor":{"display_login":"alant94"}}