LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2016, 03:48 PM   #1
yasgur99
LQ Newbie
 
Registered: Oct 2015
Distribution: Arch
Posts: 9

Rep: Reputation: Disabled
ssh connection reset by peer


Let me give a bit of background:
I just built a new desktop and for school i have a laptop. I planed to ssh into the desktop from my laptop from school to grab, edit, etc. files. I setup my router to forward any incoming ssh requests on port 22 to my desktop.

I tested ssh'ing via the local network as well as from my friends network from my laptop. It has works and still works.

My issue is when I go to school and try it. I get the error

Code:
Read from remote host xxx: Connection reset by peer
Connection to xxx closed.
I know my school has a pretty strong firewall service going (lightspeed systems is the brand of software that blocks websites and such)

Is there any way to get around this so I can ssh from my school?
 
Old 09-07-2016, 04:28 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Try running sshd on port 443
 
Old 09-08-2016, 03:20 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,215
Blog Entries: 3

Rep: Reputation: 3703Reputation: 3703Reputation: 3703Reputation: 3703Reputation: 3703Reputation: 3703Reputation: 3703Reputation: 3703Reputation: 3703Reputation: 3703Reputation: 3703
Quote:
Originally Posted by AlucardZero View Post
Try running sshd on port 443
Or pretty much any high port might work too depending on the situation, if that's what the problem is.

But to be sure, you'll have to check the logs on your server for that time to see what was going on. You may have to temporarily increase the log level of "sshd" to VERBOSE or DEBUG, DEBUG2, or DEBUG3. But once the problem is solved, wind back to INFO.

Running the client at a higher verbosity might give some clues at the time of connection as well.
Code:
ssh -v homeserver.example.com
ssh -vv homeserver.example.com
ssh -vvv homeserver.example.com
Getting client information won't require a round trip to home and back.

Another way to collect server logs would be to have different configurations with different log levels each launched by "cron" to give you a time window during which to try connect. There are a lot of variations on that, either passing -o options with LogLevel or using -f to point to different files or even swapping the config file itself, some details depend on which distro you have on the server. Then you just have to remember (and have the opportunity) to try to connect once during each time window and everything should be then waiting in the logs when you get home and it will get everything collected in one day.

By the way, if you want to use port 443 for both HTTPS and SSH, you can multiplex it using sslh. It won't obscure anything at a technical level but will allow dual use of that port.

Last edited by Turbocapitalist; 09-08-2016 at 05:28 AM.
 
Old 09-08-2016, 08:19 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by yasgur99 View Post
Is there any way to get around this so I can ssh from my school?
Their network, their rules.

Reported.
 
  


Reply

Tags
ssh


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
SSH: Connection Reset by Peer czezz Solaris / OpenSolaris 2 06-26-2009 08:37 AM
ssh - connection reset by peer laucian Linux - Newbie 4 05-10-2008 03:41 AM
ssh: Connection reset by peer Lotharster Linux - Security 6 01-29-2007 05:54 PM
ssh connection reset by peer Brain Drop Linux - Software 4 07-30-2004 10:18 PM
ssh connection reset by peer bubsgt95 Linux - General 6 06-27-2003 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration