LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   SSH: Setting up a server to the outside world - Ubuntu 12.04 (https://www.linuxquestions.org/questions/linux-server-73/ssh-setting-up-a-server-to-the-outside-world-ubuntu-12-04-a-4175415283/)

TechHunter16 07-06-2012 02:17 PM

SSH: Setting up a server to the outside world - Ubuntu 12.04
 
I have an SSH server running on my new linux box. It works within the network just fine, but if I try to connect to it from outside of the network, I get this:
Code:

$ ssh [my ip]
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug3: cipher ok: aes128-ctr [aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc]
debug3: cipher ok: aes192-ctr [aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc]
debug3: cipher ok: aes256-ctr [aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc]
debug3: cipher ok: arcfour256 [aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc]
debug3: cipher ok: arcfour128 [aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc]
debug3: cipher ok: aes128-cbc [aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc]
debug3: cipher ok: 3des-cbc [aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc]
debug3: ciphers ok: [aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc]
debug2: ssh_connect: needpriv 0
debug1: Connecting to [my ip] [[my ip]] port 80.
debug1: Connection established.
debug1: could not open key file '/etc/ssh/ssh_host_key': No such file or directory
debug1: could not open key file '/etc/ssh/ssh_host_dsa_key': Permission denied
debug1: could not open key file '/etc/ssh/ssh_host_ecdsa_key': Permission denied
debug1: could not open key file '/etc/ssh/ssh_host_rsa_key': Permission denied
debug1: could not open key file '/etc/ssh/ssh_host_dsa_key': Permission denied
debug1: could not open key file '/etc/ssh/ssh_host_ecdsa_key': Permission denied
debug1: could not open key file '/etc/ssh/ssh_host_rsa_key': Permission denied
debug1: identity file /home/jeremy/.ssh/identity type -1
debug1: identity file /home/jeremy/.ssh/identity-cert type -1
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/jeremy/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/jeremy/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/jeremy/.ssh/id_rsa-cert type -1
debug1: identity file /home/jeremy/.ssh/id_dsa type -1
debug1: identity file /home/jeremy/.ssh/id_dsa-cert type -1

I'm kind of a newbie to linux (been using Ubuntu since Febuary), so I don't really know what's going on, or how to fix it. Any help is appreciated.

sag47 07-06-2012 08:45 PM

What does /var/log/auth say about the attempted login (server log)?

TechHunter16 07-06-2012 08:51 PM

It says I don't actually HAVE a /var/log/auth file.

sag47 07-06-2012 09:09 PM

What distro is the server running? If it's RHEL based then the other place is likely /var/log/secure.

TechHunter16 07-06-2012 09:10 PM

I'm running Ubuntu 12.04 on both the server and client, so they're Debian-based.

sag47 07-06-2012 09:16 PM

Ah I just checked on my Ubuntu 12.04 and the log is /var/log/auth.log. Please, do some additional investigating on something like that. You would have figured it out with ls in /var/log/. At any rate please pastebinit or post the chunk where you're attempting to auth.

Tip, you can
Code:

tail -f /var/log/auth.log
while you attempt to ssh and see the logging as it happens. This is sometimes very useful.

SAM

TechHunter16 07-06-2012 09:46 PM

Hmm... Okay, well, now it seems to work. Sorry for your trouble.


All times are GMT -5. The time now is 03:30 PM.