I got the error below while trying to move files between two of my servers using scp command.
[root@akure:/u01/app/oracle]# ping -c 3 eko
PING eko (192.168.1.102) 56(84) bytes of data.
64 bytes from eko (192.168.1.102): icmp_seq=1 ttl=64 time=7.12 ms
64 bytes from eko (192.168.1.102): icmp_seq=2 ttl=64 time=5.60 ms
64 bytes from eko (192.168.1.102): icmp_seq=3 ttl=64 time=5.78 ms
I got the error below. I'm not sure exactly what's going on. Has any faced this time of issue before? SSH is enabled on both.
--- eko ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2009ms
rtt min/avg/max/mdev = 5.604/6.171/7.129/0.681 ms
[root@akure:/u01/app/oracle]# scp initakuree_dg.ora oracle@eko:/u01/app/oracle/
ssh: connect to host eko port 22: Connection refused
lost connection
[root@akure:/u01/app/oracle]#