
So if you are trying to scp a file from a remote server or copy a file from your local system to a remote location and you see that you get the below ssh error,
root@linux-box:/# scp user@192.168.0.10:/tmp/logs.txt /usr/log-dir/
ssh: connect to host 192.168.0.10 port 22: Connection refused
Troubleshooting steps:
- Check if the server IP/address provided is the valid one.
- Check if the remote server is available on some other port instead of 22
- Check if port 22 is open, is there any firewall configuration or access issue, check with yout Admin or ISP provider.
More Posts related to Linux,
- Terminal display next month Calendar
- How to change bash terminal prompt string and color
- How to exit from nano command
- How to Display content of a file in Terminal Screen?
- Copy entire directory using Terminal Command [Linux, Mac, Bash]
- 3 Commands to stop Nginx Server
- How to check file permissions for your file using Linux/Unix/macOS Terminal Command
- Create Hidden File or Directory using Shell Command
- bash: cls: command not found
- How to install python pip on Ubuntu using apt command
- The Date Command and its usage [Linux - Unix - macOS]
- SCP Copy all files from directory to Local Folder
- Create and write file in single Linux/macOS command
- Install OpenSSL on Linux/Ubuntu
- scp: ssh: connect to host xxxx port 22: Connection refused Error
- Check SSH/OpenSSH version Command
- Execute .bin and .run file Ubuntu Linux
- What does apt-get update command does?
- How to ls command to output one entry per line [macOS/Linux/Bash]
- 3 ways to clear screen on Linux Terminal
- How to backup a file in Linux/Unix
- How to quit or exit SFTP Prompt on Terminal
- How to use SCP Command to Copy Directory
- zsh hello world example
- How to remove/delete a directory in Linux/macOs
More Posts:
- Display Safari URL address link on hover - MacOS
- Xcode 13 - unknown error compiling for iOS 15.0 but module has a minimum deployment target of iOS 15.2 - iOS
- How to display Line Number in Eclipse IDE - Eclipse
- Static IP MTNL available at Rs. 200 per month - HowTos
- How to convert byte array to String [Kotlin] - HowTos
- Java XML-RPC 3.1.x based web service example - Java
- Base 64 Encoding Decoding In Notepad++ - NotepadPlusPlus
- Android Display Toast on Button Click - Android