/l3/users/slm/2018-12-minsk-aws/student02.BigClassRoom/user :1 |
|
$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. |
$ssh-add -l
2048 SHA256:rHGT1hNEEuhOzoruPh11z4PAevDa/B44fN47tyA3H4o user@m2 (RSA) |
$vim ValeryDNS.txt
|
$vim ValeryDNS.txt
|
$vim ValeryDNS.txt
|
$~
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. |
$^C
![]() |
$^C
![]() |
$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 |
$| ssh ec2-34-244-157-202.eu-west-1.compute.amazonaws.com 'cat
![]() |
$.eu-west-1.compute.amazonaws.com 'cat
|
$ssh 10.1.1.57
![]() ssh: connect to host 10.1.1.57 port 22: No route to host |
$ssh -A ec2-34-245-27-59.eu-west-1.compute.amazonaws.com
![]() Permission denied (publickey,gssapi-keyex,gssapi-with-mic). |
$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. |
$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. |
$apt -cache show awscli
![]() E: Opening configuration file ache - ifstream::ifstream (2: No such file or directory) |
$sudo apt-get python-pip
![]() [sudo] password for user: E: Invalid operation python-pip |
$sudo apt-get python-pip
![]() E: Invalid operation python-pip |
|