Журнал лабораторных работ

Содержание

Журнал

Среда (12/19/18)

/dev/pts/0
09:18:58
$ssh ec2-18-202-250-151.eu-west-1.compute.amazonaws.com
Last login: Wed Dec 19 08:16:21 2018 from port-90-adslby-pool35.infonet.by
       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|
https://aws.amazon.com/amazon-linux-2/
15 package(s) needed for security, out of 16 available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-10-1-1-153 ~]$ logout
Connection to ec2-18-202-250-151.eu-west-1.compute.amazonaws.com closed.
09:20:16
$ssh-add -l
2048 SHA256:rHGT1hNEEuhOzoruPh11z4PAevDa/B44fN47tyA3H4o user@m2 (RSA)
09:20:22
$vim ValeryDNS.txt
09:22:40
$vim ValeryDNS.txt
09:24:37
$vim ValeryDNS.txt
09:24:41
$~
The authenticity of host 'ec2-34-245-27-59.eu-west-1.compute.amazonaws.com (34.245.27.59)' can't be established.
ECDSA key fingerprint is SHA256:IDNPRyB+tM8afeL+WgI0sDCRMPecpxb9/bF1FXvOZgo.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-34-245-27-59.eu-west-1.compute.amazonaws.com,34.245.27.59' (ECDSA) to the list of known hosts.
       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|
https://aws.amazon.com/amazon-linux-2/
15 package(s) needed for security, out of 16 available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-10-1-1-132 ~]$ export | gep SSH
-bash: gep: command not found
[ec2-user@ip-10-1-1-132 ~]$ export | grep SSH
declare -x SSH_CLIENT="81.25.35.90 11070 22"
declare -x SSH_CONNECTION="81.25.35.90 11070 10.1.1.132 22"
declare -x SSH_TTY="/dev/pts/0"
[ec2-user@ip-10-1-1-132 ~]$ exit
logout
Connection to ec2-34-245-27-59.eu-west-1.compute.amazonaws.com closed.
прошло 12 минут
09:37:12
$^C

09:37:12
$^C

09:37:13
$ls
AWS        Downloads   m0_id_rsa.pub  Music     Templates
Desktop    github.txt  m1_id_rsa.pub  Pictures  ValeryDNS.txt
Documents  hello.md    m3_id_rsa.pub  Public    Videos
09:37:35
$| ssh ec2-34-244-157-202.eu-west-1.compute.amazonaws.com 'cat

09:37:35
$.eu-west-1.compute.amazonaws.com 'cat

09:38:10
$ssh 10.1.1.57
ssh: connect to host 10.1.1.57 port 22: No route to host
прошло 37 минут
10:15:59
$ssh -A ec2-34-245-27-59.eu-west-1.compute.amazonaws.com
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
10:16:10
$ssh ec2-52-214-212-195.eu-west-1.compute.amazonaws.com
The authenticity of host 'ec2-52-214-212-195.eu-west-1.compute.amazonaws.com (52.214.212.195)' can't be established.
ECDSA key fingerprint is SHA256:SVdHOFDTfmt4J7SrjnWBcAKQXpPniooyXn0u66E0ElU.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-52-214-212-195.eu-west-1.compute.amazonaws.com,52.214.212.195' (ECDSA) to the list of known hosts.
       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|
https://aws.amazon.com/amazon-linux-2/
[ec2-user@ip-10-1-1-57 ~]$ sudo -s
[root@ip-10-1-1-57 ec2-user]# dmesg | tail
...
mv: cannot stat ‘/mnt/home/ec2-user/.ssh/authoized_keys1’: No such file or directory
[root@ip-10-1-1-57 ec2-user]# mv /mnt/home/ec2-user/.ssh/authorized_keys{1,}
[root@ip-10-1-1-57 ec2-user]# ls /mnt/home/ec2-user/.ssh
authorized_keys  known_hosts
[root@ip-10-1-1-57 ec2-user]# umount /mnt
[root@ip-10-1-1-57 ec2-user]# exit
exit
[ec2-user@ip-10-1-1-57 ~]$ exit
logout
Connection to ec2-52-214-212-195.eu-west-1.compute.amazonaws.com closed.
прошло 22 минуты
10:39:05
$ssh ec2-34-242-73-202.eu-west-1.compute.amazonaws.com
The authenticity of host 'ec2-34-242-73-202.eu-west-1.compute.amazonaws.com (34.242.73.202)' can't be established.
ECDSA key fingerprint is SHA256:IDNPRyB+tM8afeL+WgI0sDCRMPecpxb9/bF1FXvOZgo.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-34-242-73-202.eu-west-1.compute.amazonaws.com,34.242.73.202' (ECDSA) to the list of known hosts.
Last login: Wed Dec 19 08:58:12 2018 from port-90-adslby-pool35.infonet.by
       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|
https://aws.amazon.com/amazon-linux-2/
15 package(s) needed for security, out of 16 available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-10-1-1-132 ~]$ Connection to ec2-34-242-73-202.eu-west-1.compute.amazonaws.com closed.
прошла 91 минута
12:10:46
$apt -cache show awscli
E: Opening configuration file ache - ifstream::ifstream (2: No such file or directory)
12:17:00
$sudo apt-get python-pip
[sudo] password for user:
E: Invalid operation python-pip
12:18:47
$sudo apt-get python-pip
E: Invalid operation python-pip
12:19:00