SSH protocol working but scp or sftp protocol not working

deepkasar03

New Member
Joined
Oct 11, 2025
Messages
1
Reaction score
0
Credits
19
scp -vrP 4422 [remote_server_username]@[remote_server_ip]:/dir/dir/tested_result/*.png ~/Downloads/[some_file]
Executing: program /usr/bin/ssh host [remote_server_ip], user [remote_server_username], command sftp
OpenSSH_9.6p1 Ubuntu-3ubuntu13.14, OpenSSL 3.0.13 30 Jan 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to [remote_server_ip] [[remote_server_ip]] port 4422.
debug1: connect to address [remote_server_ip] port 4422: Connection timed out
ssh: connect to host [remote_server_ip] port 4422: Connection timed out
scp: Connection closed


The above scp command when used with verbose flag gave the corresponding debugs. I do not understand why scp is not working but my ssh protocol works perfectly fine. I am able to connect with that server but i cant transfer any files between them
 


Follow Linux.org

Members online


Top