Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
terminal is showing this message "ssh: connect to host 192.168.20.165 port 22: Connection refused"
any one please help me regarding this. (i am using debian)
Please check if port 22 of your server is not blocked by the firewall or the router, if yes then forward the port 22 in your router and open port 22 on the firewall.
It is refusing connections. That means either the port is blocked by firewall or ssh service itself is not running.
Thx buddy....
i think the port is blocked by firewall.. but i dunno how to check whether port is blocked, n i dunno how to open the closed port (commands i dunno).. can u pls send me, if u know and as u knew i am using debian...
when u say its blocked by firewall, u mean by OS firewall or physical firewall.
for OS firewall :- service iptables off
for physical firewall contact u r firewal admin & follow the procedure.
Mind you firewall is set for security, so it will be better if u just open port 22 which is required.
buddy,
this is the message i m getting,when i give
telnet 192.168.20.165 22
Trying 192.168.20.165...
telnet: Unable to connect to remote host: Connection refused
so now i give the entire scenario..
sterday this was the scene
whenever i give ssh 192.168.20.165 pwd...
terminal is showing this message "ssh: connect to host 192.168.20.165 port 22: Connection refused"
so i tried everything that u guys told me, still i cannot open the port and ssh server is not installed in my system, ssh client is installed in my system..
i tried installing ssh server in my system, but it is displaying the error as,
(configure: error: *** zlib missing - please install first or check config.log ***)
so messed up.. not at all communicating any debian system, but it is communicating Red hat linux, if i use that same ssh..
You do not need ssh server on every system. You will need it installed on the system that you are trying to ssh. It wont matter much which distribution it is running on. ssh server will run much the similar way. Just the starting and stopping of the service will differ.
You do not need ssh server on every system. You will need it installed on the system that you are trying to ssh. It wont matter much which distribution it is running on. ssh server will run much the similar way. Just the starting and stopping of the service will differ.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.