Ubuntu ssh connection timed out due to firewall

Hello, just spent a few hours trying to figure out how to solve this.

After upgrading to Ubuntu 9.10 from 9.04, I was unable to ssh into my desktop from my other devices.

After trying a lot of stuff, I realized that disabling the firewal with
sudo ufw disable
would fix the problem.

I came upon this page (https://help.ubuntu.com/community/IptablesHowTo) which provided the solution, without forcing me to disable the firewall. Allowing ssh on the firewall with this command line:

sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT

Just thought I'd share this solution.

Ubuntu ssh connection timed out

I want to remotely access a fedora desktop from my ubuntu computer via ssh. When I type the command this is what I gotlalit@lalit:~$ ssh -X b08lalit@10.25.32.5ssh: connect to host 10.25.32.5 port 22: Connection timed outWhen I ping the machine however, this is what I getlalit@lalit:~$ ping 10.25.32. ...

Ubuntu SSH Connection Timed Out (Random WLAN and ETH)

I'm running Ubuntu 9.10, over my LAN connection (WLAN or ETH) I can only connect to my box via SSH randomly. Sometimes it'll connect, and sometimes it won't. It seems at the times when I can't connect it won't allow any no matter how many times I try. If I reboot I can connect again, or if I wait fo ...

Ubuntu SSH connection timed out

I set up openssh on my xubuntu computer and i am trying to connect to it from another computer on the same network with PuTTY. It connects fine when i use the private IP address or the hostname, but gives me a "connection timed out" error message when i use the network's address (I have th ...

Ubuntu ssh connection timed out

I am trying to test my external ssh access. I can use ssh between machines internally and have used virtual server on my router to send port 22 as port 22 to another internal machines ip. I am now attempting to go out of and then back into my network usingssh username@externalIPhowever nothing happe ...

Ubuntu Can't SSH; connection timed out

I had SSH configured and working previously, but it hasn't worked lately. The main change I can think of is that I upgraded to 9.04. Anyhow, I do have the appropriate port forwarded on the router. I can ssh from the server to the server by doing 'ssh localhost -p xxxxx' but if I use the IP it times ...

Ubuntu ssh: connection to host port: 22: Connection timed out lost connection

We have 2 linux boxes on 2 different floors. I'm able to transfer files from Box A to Box B, but not from box B to box A. When I try to transfer files from B to A I get:ssh: connect to host 10.0.0.1 port 22: Connection timed out lost connectionWhat might be the problem here?? I'm able to ping from b ...

Ubuntu SSH Connection Refused After Upgrade

Just upgraded ubuntu, and I'm having problems with SSH. I can access SSH from the web: $ ssh url.com . However, when I try sftp or $ ssh local ip, I get the messages access denied or connection refused respectively. Could this be caused by the upgrade? Also, I just got finished setting up static loc ...

Ubuntu Evolution connection timed out

Everything was fine until yesterday; I could send and receive mail without problems. Now when I click send & receive, I get the error:Error while Sending message.Could not connect to smtp.gmail.com: Connection timed outSo I was wondering if it's possible to increase the time before the connectio ...

Ubuntu SSH connection

So lets say im going to compile a file, run a command or even copy a file that takes about 30minutes to finish. I made a connection over ssh and run a command to copy files from one folder to another. Usually it will tell me which files is being copied. After 2 minutes i close my ssh connection. Aft ...

Java Problem with JDBC on Ubuntu. Getting "Connection timed out"

(I posted this on the Install forum but this seems more appropriate) We have a project that we are trying to deploy in a new environment that was recently set up. I am not sure whether the problem is in Ubuntu or the MySql installation. Despite using Spring and Hibernate in our setup to connect to t ...

Ubuntu apache2 connection timed out.

Ok, fresh install of ubuntu with apache2, directed ports 443 and 80 the corresponding ip, but it still doesn't recognise the server :(Any ideas guys? ...

Ubuntu SSH connection refused

I've got 2 laptops both running Ubuntu (one 10.04, the other 10.10), and I'm trying to SSH from one to the other but am having no success. Here's what I've done so far:*Installed openssh-client && openssh-server on both machines*Opened port 22 on the remote machine via Firestarter*Forwarded ...

Ubuntu ssh connection font problem

1 open terminal , 2 type command "ssh test@test.com" 3 the result shows in attachment(1.jpg)4 type command "su -"5 the result shows in attachment(2.jpg)I wanna get the effect of font(blod) in step2 just like which shows in step5.Who can help me? ...

Ubuntu SSH Connection reset by client error

I'm having problem running open SSH. I have installed SSH, on my system, but when I run:ssh localhostI get the error :Read from socket failed:Connection reset by peerI get that same error when trying to connect from a different local computer.When I attempted to restart the service by typing:sudo /e ...

Ubuntu SSH Connection

I wasn't to sure which forum to put this post in as it seems to fit into many sections, so I decided to stick it into the general section. If I have made the wrong choice, I am sure the mods/admins will deal with it.Anyway, I am trying to connect to my home computer from my work computer via ssh.My ...

Ubuntu SSH Connection Gives ROOT

I recently installed OPENSSH server and client and so did my friend. We are using RSA and PUBKeyauth. When he logs into my SSH server he can use sudo without entering a password to modify any file on my computer. When i log onto his linux box i have to sudo and enter a password to modify any sort of ...

Ubuntu SSH Connection drops.

I have ubuntu 9.10 server installed, I am connecting with putty over ssh 22. but after a while (about 20-30 mins) the connection drops. and I have to connect again.could you help? why it can be? is there any configuration for that? ...

Ubuntu SSH connection refused

I've been trying for the past few days to try and set up an account on dyndns.com to ssh into my Linux machine. However, when I try to ssh into it, I'm told that a connection to port 22 has been refused. The domain is working: ping'ing it works just fine. When I try to ssh to "127.0.0.1" o ...

Ubuntu ssh connection refused

Here is my configuration/problem:I have an Ubuntu server running a static ip with the ssh server installed. I can log on to this server if I am on the lan. Once I try to connect from the wan side of my router I get "connection refused". However, if I setup another ssh server on my xp works ...

Ubuntu Postfix Connection Timed Out

I am running/setting up an Ubuntu Server. I am using it as a web server and a mail server.My apache is working perfectly but postfix is giving me a ton of trouble. I am able to receive email messages to my domain (server) but I can not reply (using sendmail or SMTP). Also, I can not access my email ...

Ubuntu ssh connection dies

i connect to the server at work using ssh...the server is 8.10 server edition and i use 8.10 desktop edition...i dont have a super dupper fast internet connection, rather a humble one...my problem is that when i ssh to the server and provide the password and maybe open a text file to edit using vim, ...

Ubuntu SSH connection to a Mac OS X machine

I need to connect via SSH to a Mac OS 10.4 computer remotely. Under 7.10 I had this working with the following command:ssh -L 5901:localhost:5901 [Mac username]@[IP address of the Mac]I recently tried doing this again (after upgrading to 8.04) and it no longer works. Where I get stuck as it the pass ...

Ubuntu SSH Connection Manager

I work in an environment that requires a lot of remote connections to different servers. I was creating a small PyGTK program that manages the hosts and allows the user to SSH in, but would also like the program to be able to SFTP in using nautilus. I don't want to mess with keys, but I would like t ...

Ubuntu ipc$ connection denied due to security descriptor

Recently i have installed Ubuntu server and configure the samba.After that i am able to share the directories on windows system, i am able to join the windows system in samba domain but when i am going to login through samba users it is giving the error computer account not found..i have check in lo ...

Ubuntu SSH Connection

What is the best way to secure my SSH connection on Ubuntu I am new at this and really need some great ideas. ...

Ubuntu ssh : connection refused

I just got a new laptop running ubuntu 8.04. It is on a local network, and I can ping its ip address, so I know it is there. I also have another machine running Fedora. I can ssh and scp from the ubuntu machine to the Fedora machine, but when I try to ssh in the reverse order from the Fedora machine ...

Ubuntu ssh connection not refused, but also not working

Good day!I have the following trouble with ssh connections:Two PC's with sshd enabled (7.10 and 8.04.1) can not connect (no matter in which direction, authentication is via password). After the password is sent nothing happens, though /var/log/auth.log shows, that remote user is authorised. sshd is ...

Ubuntu SSH connection refused

After going through a lot of threads, I'm still not able to find out where the problem is. The inputs and outputs are:pre@pre-Inspiron-N4010:~$ sudo netstat -nap | grep :22[sudo] password for pre: tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3737/sshd tcp 0 0 10.129.41.225:47356 10.129.41.225:22 ESTABLISHED ...

Ubuntu ssh connection problems when client is behind router

I have an ssh client setup in my office desktop. I use a port different from 22, and have firestarter set to allow connections from my laptop on this port. I use no-ip to have a fixed network address on each machine. When I have my laptop at work (a university), it can connect fine. When I bring the ...