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?