|
@ -615,22 +615,19 @@ show_instruction () |
|
|
echo '==============================================================' |
|
|
echo '==============================================================' |
|
|
echo '' |
|
|
echo '' |
|
|
|
|
|
|
|
|
echo "To run SEC programs in an interative shell:" |
|
|
echo "To run docker programs in an interative shell:" |
|
|
echo " 1. Login to master node:" |
|
|
echo " 1. Login to master node:" |
|
|
echo " Using Docker through command wrapper:" |
|
|
echo " Using Docker through command wrapper:" |
|
|
echo " $ swarmlab-sec login" |
|
|
echo " click Container->Actions" |
|
|
echo "" |
|
|
echo "" |
|
|
echo " Or using SSH with keys through exposed port:" |
|
|
|
|
|
echo " $ ssh -o \"StrictHostKeyChecking no\" -i ssh/id_rsa -p $SSH_PORT docker@localhost" |
|
|
|
|
|
echo ' where [localhost] could be changed to the host IP of master node' |
|
|
|
|
|
echo "" |
|
|
echo "" |
|
|
echo " 2. Execute programs inside master node, for example:" |
|
|
echo " 2. Execute programs inside master node, for example:" |
|
|
echo " $ sudo su" |
|
|
echo " $ su -" |
|
|
echo " # apt update" |
|
|
echo " # apt update" |
|
|
echo " *----------------------------------------------------*" |
|
|
echo " *----------------------------------------------------*" |
|
|
echo " | Default hostfile of connected nodes in the swarmlab |" |
|
|
echo " | Default hostfile of connected nodes in the swarmlab |" |
|
|
echo " | is automatically updated at /etc/opt/hosts |" |
|
|
echo " | is updated at /project/hosts |" |
|
|
echo " | To obtain hostfile manually: $ get_hosts > hosts |" |
|
|
echo " | To obtain hostfile manually: /project/bin/swarmlab-nmap > /project/hosts |" |
|
|
echo " * ---------------------------------------------------*" |
|
|
echo " * ---------------------------------------------------*" |
|
|
echo "" |
|
|
echo "" |
|
|
echo "" |
|
|
echo "" |
|
|