-
Notifications
You must be signed in to change notification settings - Fork 8
/
AWS-Bastion
71 lines (49 loc) · 1.45 KB
/
AWS-Bastion
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
cloud:
ssh -i <pemfile> user@<remote hostname/ remote ip>------------->username
currently logged in ec2-user
ec2-user : ssh -i <remoteserverpem>.pem ip/dns
current user: awsadmin
remote server/user=ec2-user
ssh -i <pem>.pem ec2-user@prasad-ec2-ip/dns
current user: awsadmin
remote user: root
ssh root@remoteserverip/dns------------->root
whoami--->root
/etc/sudoers
/etc/sudo.conf----------->no
=============================
system admin------------>linux ec2------------------->linux ec2-----------------(2)
bastion
ssh 22 anywhere
web-dmz-linux
ssh 22 bastion
http 80 anywhere
system admin(rdp)--3389------------->windows ec2------------------>linux ec2(2)
bastion-rdp
rdp 3389 anywhere
windows-dmz-linux
ssh 22 bastion-rdp
http 80 anywhere
run--->mstsc--->rdp/mstsc wizard--->
ec2--GEt the password -by laoding pem file
Public DNS ec2-54-205-49-108.compute-1.amazonaws.com
User name Administrator
Password
====================================================================================
System admin --------------->Windows ec2 ---------------->windows ec2(2)
bastion-windows
rdp 3389 anywhere
dmz-windows
rdp 3389 bastion-windows
http 80 anywhere
=================================
https://archive.apache.org/dist/httpd/binaries/win32/
httpd-2.2.25-win32-x86-openssl-0.9.8y.msi
=======================================================================
lab:-
5 ppl
winows--- apache
localhost
how to open firewall
jump server