Linux Banner in db server

Hi guys

I’ve been running in some trouble to set banner in the DB server. Everything ok with app servers. Like this

thor@jump_host /$ sudo scp -r /tmp/nautilus_banner [email protected]:~/motd
[sudo] password for thor:
The authenticity of host ‘172.16.239.10 (172.16.239.10)’ can’t be established.
ECDSA key fingerprint is SHA256:CJ8rCqULKxlztSsALn7GNnczwZyA5CHzrY8ik0nT3wU.
ECDSA key fingerprint is MD5:11:fa:7a:6a:5d:84:07:27:b1:9f:96:b5:df:c3:df:1e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘172.16.239.10’ (ECDSA) to the list of known hosts.
[email protected]’s password:
bash: scp: command not found
lost connection
thor@jump_host /$ sudo scp -r /tmp/nautilus_banner [email protected]:~/motd
[email protected]’s password:
bash: scp: command not found
lost connection
thor@jump_host /$ sshpass -p ‘Sp!dy’ ssh -o StrictHostKeyChecking=no [email protected]
Last login: Mon Jul 6 18:48:49 2020 from jump_host.linuxbanner_db_net
[peter@stdb01 ~]$ ls
[peter@stdb01 ~]$ ls -a
. … .bash_history .bash_logout .bash_profile .bashrc
[peter@stdb01 ~]$ exit
logout
Connection to 172.16.239.10 closed.
thor@jump_host /$ sudo scp -r /tmp/nautilus_banner [email protected]:~/motd
[email protected]’s password:
bash: scp: command not found
lost connection
thor@jump_host /$ sudo scp -r /tmp/nautilus_banner [email protected]:~/motd
ssh: Could not resolve hostname stdb01.stratos.xfusioncorp.com: Name or service not known
lost connection
thor@jump_host /$ sshpass -p ‘Sp!dy’ ssh -o StrictHostKeyChecking=no [email protected]
Last login: Mon Jul 6 18:55:19 2020 from jump_host.linuxbanner_db_net
[peter@stdb01 ~]$

I can log DB server but can’t ssh copy to it and really don’t know why.

Any insight @Inderpreet?

Hi,

Try to install openssh-clients on the destination server.

Hi @wael.sadek you nail it! Thanks a lot.

installed openssh-clients still not able to copy banner file to db server
app servers are fine
only db server is giving issue, battling this issue for 2hrs now
any help?
sudo yum install openssh-clients-y
sudo scp -r /tmp/nautilus_banner [email protected]:/tmp

@Inderpreet @Montbra

this didnt help me, after installing do we need to open up the ports.
what are the steps to make db server work for banner

@Montbra @wael.sadek

Try
yum -y install openssh-server openssh-clients

Hope it helps.

1 Like

Don’t forget to start ssh daemon there

sudo systemctl start sshd

Peace

1 Like

Thank You, i was able to complete the task today, weird yesterday openssh install didnt work. it worked today.