Tuesday, August 18, 2020

How to Change IP Address in Bitnami Tomcat and configure SSH properly?


         How to change IP Address in Bitnami Tomcat and configure SSH properly?


        While Configuring Bitnami Tomcat VM, I have to face an issue with IP address change and SSH Server was not working. But after an hour of research and struggle,I have found an easy way to change the IP address and bring up the SSH server so that I can access it from putty.

So let start configuration of Bitnami Tomcat Stack:

1)  In console open following path
cd /etc/systemd/network
Use sudo vi /99-dhcp.network to edit file.


2) Edit Below Detail in file

[Match]
Name=Interface Name

[Network]
Address=192.168.1.1/24
Gateway=192.168.1.1
DNS=192.168.1.50

  3) After Editing is completed save file using below command

      Press ESC  and :wq to save File

  4) After file is save reboot system using below command:

       Sudo Reboot.

  5) After system rebooted you can see above mention IP will get assign to Bitnami VM.     


SSH Configuration 

    First we have to remove openssh server from Bitnami Tomcat. use below command to remove Openssh Server


 sudo apt-get remove openssh-server                                        

sudo apt-get purge openssh-server (to remove all config file)              


       After you remove Openssh-server from Bitnami Stack reboot system.

      Install OpenSSH-Server again using following command.

 sudo apt install openssh-server 

After Install is completed you can check ssh service status as running  .

sudo systemctl status ssh

You can also see port 22 is open using netstat -tnlp command.                                    



           






 


 


No comments:

Post a Comment

How to Change IP Address in Bitnami Tomcat and configure SSH properly?

         How to change IP Address in Bitnami Tomcat and configure SSH properly?         While Configuring Bitnami Tomcat VM , I have to fac...