sshpass is not working

When you are tying to sshpass from another machine. You may suffer from Following problem:-

When you enter a command for sshpass , you will not get prompt of new machine you wanted to login.You will get a prompt of your current machine.

example:

root@local$  sshpass -p ‘password’ ssh usenarme@172.22.25.25

after fired this command  get a prompt of your current machine.

like

root@local$

Solution:-

In that case.Login to your machine you want to sshpass.

install sshpass (sudo apt-get install sshpass)

After installation , please reboot your machine.(that is the most important thing )

and try the sshpass command again.

You will be able to login your desired machine.

example:

root@local$  sshpass -p ‘password’ ssh usenarme@172.22.25.25

you will get a prompt .

root@remote$

The above prompt is the prompt of a machine.You wanted to  login using sshpass.

 

 

Advertisements

Install and setup DevStack on Linux

Step 1:

Take a fresh/new Linux machine/virtual machine.

Step 2:

Install  ‘git’ on that machine.  (sudo apt-get install git)

Step 3:

Download/clone DevStack using git.

(git clone https://git.openstack.org/openstack-dev/devstack)

Step 4:

You will found a ‘devstack’ directory.

Go to that directory.(cd devstack)

You will find a file ‘stackrc’.

Do following changes in that file.

you will find  a line -GIT_BASE=${GIT_BASE:-git://git.openstack.org}’

line number may 169(may variable).

Remove/comment out this line.

Insert the line – ‘GIT_BASE=${GIT_BASE:-https://www.github.com}’

 

Step 5:

Copy the file local.conf from ‘devstack/samples’ directory to ‘devstack’ directory and remove the rest contents and put only the following lines in it :

[[local|localrc]]

 

ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron

ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng

LOGFILE=/opt/stack/logs/stack.sh.log

VERBOSE=True

LOG_COLOR=True

SCREEN_LOGDIR=/opt/stack/logs

 

Step 6:

Run stack.sh(cd devstack and ./stack.sh with non sudo user (strictly))

./stack.sh will ask you for password 5-6 times.

Provide the same password all the time.

It will take around 30-45 mins to run the script.

Step 7:

After successful installation at the end, it will show you following

4 important things.

host ip, Horizon’s (devstack’s dashboard) ip address ,default users,password.

Save those things , those will be require in future to run any devstack commands.

 

 

 

Good source of knowledge and problem solver for software engineers.