Run command after connected a bash terminal via SSH

Problem: Want to run command after SSH connected.

Solution: if you are using Ubuntu, enter:

echo 'command' >> ~/.bashrc

if you are using Centos, enter:

echo 'command' >> ~/.bash_profile

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Close Bitnami banner
Bitnami