BinaryONe commited on
Commit
158758c
·
1 Parent(s): e38f7d2
Files changed (1) hide show
  1. start.sh +3 -0
start.sh CHANGED
@@ -2,7 +2,9 @@
2
 
3
  # Function to print the current hostname and user details
4
  print_host_details() {
 
5
  echo "* The hostname of this container is: $(cat /etc/hostname)"
 
6
  echo "* ID of the user running the script: $(id -u) * Group: $(id -g)"
7
  echo "* Status of Admin: $(id admin 2>/dev/null || echo 'Admin user not found')"
8
  }
@@ -143,6 +145,7 @@ echo "* Contents of config of Admin:"
143
  cat /home/admin/.ssh/config
144
  echo "* Contents of known hosts of Admin:"
145
  cat /app/ssh/ssh_known_hosts
 
146
 
147
  start_ssh_service
148
 
 
2
 
3
  # Function to print the current hostname and user details
4
  print_host_details() {
5
+ #echo "0.0.0.0 abc" | sudo tee -a /etc/hosts
6
  echo "* The hostname of this container is: $(cat /etc/hostname)"
7
+ echo "* The host of this container is: $(cat /etc/hosts)"
8
  echo "* ID of the user running the script: $(id -u) * Group: $(id -g)"
9
  echo "* Status of Admin: $(id admin 2>/dev/null || echo 'Admin user not found')"
10
  }
 
145
  cat /home/admin/.ssh/config
146
  echo "* Contents of known hosts of Admin:"
147
  cat /app/ssh/ssh_known_hosts
148
+ sshd -T | grep -i 'known hosts'
149
 
150
  start_ssh_service
151