Swarmlab docs

Application development in a distributed system

Development of Distributed Systems from Design to Application


You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.1 KiB

3 years ago
= Network Scanning - exercises!
3 years ago
== Find TCP Ports connections
3 years ago
3 years ago
* Connect to master
3 years ago
3 years ago
* Find All TCP Ports connections
** save it
3 years ago
* Find All UDP Ports connections
** save it
3 years ago
* run
3 years ago
[source,bash]
----
cd /project/courses/fluentd
# run
./fluentd.yml.sh
----
3 years ago
3 years ago
* Find All TCP Ports connections
** save it
3 years ago
3 years ago
* Find All UDP Ports connections
** save it
3 years ago
NOTE: try to find the differences between them!
3 years ago
== Find All live hosts
* Find All live hosts
** save it
== Find open TCP Ports in All hosts
* Find All open TCP Ports in All hosts
** save it
3 years ago
3 years ago
== SSH connect
3 years ago
3 years ago
[source,bash]
----
ssh docker@[IP]
----
3 years ago
3 years ago
3 years ago
=== SSH exec remote command
3 years ago
Run command using the following syntax:
[source,bash]
----
## user syntax ##
ssh -t docker@192.168.128.3 'ip a'
## sudo syntax ##
ssh -t docker@192.168.128.3 'echo docker | sudo -S cat /etc/passwd'
# ^^^^^ USER ^^^ IP ^^^^^^^ sudo password ^^^^^^^^ COMMAND
## su syntax ##
ssh docker@nas01 su -c "/path/to/command1 arg1 arg2"
----
3 years ago
== SSH password
[source,bash]
----
SSH password:
SUDO password[defaults to SSH password]:
----
3 years ago
password: *docker*
3 years ago
3 years ago
SUDO password: *docker*
3 years ago