LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-06-2012, 02:17 PM   #1
TechHunter16
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Rep: Reputation: Disabled
Question 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.
 
Old 07-06-2012, 08:45 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,417
Blog Entries: 33

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
What does /var/log/auth say about the attempted login (server log)?
 
Old 07-06-2012, 08:51 PM   #3
TechHunter16
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
It says I don't actually HAVE a /var/log/auth file.
 
Old 07-06-2012, 09:09 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,417
Blog Entries: 33

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
What distro is the server running? If it's RHEL based then the other place is likely /var/log/secure.
 
Old 07-06-2012, 09:10 PM   #5
TechHunter16
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
I'm running Ubuntu 12.04 on both the server and client, so they're Debian-based.
 
Old 07-06-2012, 09:16 PM   #6
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,417
Blog Entries: 33

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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
 
1 members found this post helpful.
Old 07-06-2012, 09:46 PM   #7
TechHunter16
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hmm... Okay, well, now it seems to work. Sorry for your trouble.
 
  


Reply

Tags
server, ssh, ubuntu, ubuntu 12.04


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Ubuntu server remote ssh and local network ssh issues using putty. scottpops Linux - Server 8 05-17-2012 05:07 PM
Firestarter kills OUTGOING SSH Ubuntu 10.04- rejects SYN/ACK from SSH server edsmithers Linux - Networking 3 09-29-2010 02:53 PM
Setting up SSH server SuperDude123 Linux - Server 9 02-14-2009 12:02 AM
help for setting up X server to use ssh parv Fedora 7 02-25-2008 09:51 AM
Setting up ssh for ubuntu behind a router ThirtySixBelow Linux - Networking 1 07-19-2007 11:35 PM


All times are GMT -5. The time now is 04:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration