Asked By
DanielMartin 0 points N/APosted on - 08/09/2011
Here comes a strange error message with PuTTY.exe. I have been using it for so many remote connections before. I try to just click on PuTTy.exe and then enter the remote host and the connection is established.
When I try to connect it through the command prompt, I am not able to establish a connection between the server and host.
I am getting an error message:
Invalid Port Number
When I try the same connection with Putty.exe, I don’t have any issues. Not sure what the problem could be.
Putty has two sort of port that you usually need to enter once when there is tunneling and other when you want to connect to remotely. This error is because of invalid port you entered. There are two reasons for this error.
1. There is a range of valid port numbers on any pc i. e. from 1 to 65535.
2. There are ports which are reserve for different protocols like TCP/IP runs over port 80 and applications. Kindly use to the port number greater than 1024 for tunneling and use appropriate port when try to connect remotely.
You should enter the port number keeping this in mind.
The first picture shows the port which is in use among the reserved ports like 22 used for SSH connection unsigned given IP while second picture shows the port for tunneling.
That’s an “Invalid port number” error which means the port number you want to connect to may be incorrect or there is no such port number. First, check that the port number you want to connect to exists and is configured to receive connections. Also, check the syntax of the command you entered. Check that the combinations of switches and options are valid.
Here’s an example how to start an SSH session with putty. First, click “Start”, “All Programs”, “Accessories” then “Command Prompt”. In the command prompt window, type without quotes “putty.exe –ssh [email protected] 22” then hit Enter. Make sure you include the complete path where the “putty.exe” file is located. The “-ssh” switch sets the SSH connection type. The connection types you can use are “-ssh”, “-telnet”, “-rlogin”, and “-raw”.
Replace “root” with your username, “1.1.1.1” with your server’s IP address, and “22” with the port number you want to connect to.
In Today's evolving World, the importance of technology cannot be neglected. New technologies and gadgets are hitting the market every day, making us keen on what the future will hold for us. Education, health,...
Building an online store has become an essential aspect of running a successful business in today's digital age. With the increasing popularity of e-commerce, having a well-designed and functional website is crucial for reaching...
Tesla has become a household name in the automotive industry, known for its sleek designs, technological advancements, and eco-friendly features. If you're in the market for a Tesla, you may want to consider buying...
The finest laptops are powerful enough to do your daily tasks, comfortable enough to use all day, and power-efficient enough to ensure you don't run out of battery power unexpectedly. Of course, all these...
Before getting into knowing the facts, let’s have a brief about the Dark Web. The dark web is the data of the World Wide Web that is accessible only through special software, combinations, or...
While looking for a chemical-free way to clear and purify both durable and low grounds in your home, a steam cleaner is an excellent solution. With a spurt of superheated steam, this cleaning equipment...
Internet monitoring software keeps a log of all internet activities. You can install this type of software on your computer remotely or by the administrator. An operating console controls this software. This type of...
A Hard Disk Drive is usually partitioned into various smaller drives for optimization. A partition manager helps make this process easier and more efficient. Here, let’s discuss the top 10 best partition manager software.
1....
Music production is the initial stage of any song. Music production can be done either in studios or at home using an online music production software. Here, let’s discuss the top 10 best online...