LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-26-2013, 05:09 AM   #1
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
Alternative to ssh for remote server


Hi folks. Not sure if this qualifies as a security question but here is my situation.

My servers both running Fedora were inaccessible via ssh. I would get the prompt which meant that sshd was running but whenever I entered my password, the session would freeze then time out.

I have faced this before and have never quite figured out what the root cause is. At this point, i was wondering if there is another alternative method to log in in the event ssh fails short of enabling telnet because of its security implications?

Anything along the lines of socat or netcat?

Thanks
 
Old 07-26-2013, 05:21 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
http://mosh.mit.edu/
 
Old 07-26-2013, 02:44 PM   #3
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Rep: Reputation: 174Reputation: 174
Mosh makes the initial connection to the remote system via ssh, so sshd still has to be up and accessible on the remote system. Mosh uses ssh for authentication, and to start the mosh-server on the remote system. In the Op's case, ssh wasn't working, so neither would Mosh.
 
Old 07-26-2013, 03:02 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by immortaltechnique View Post
Hi folks. Not sure if this qualifies as a security question but here is my situation.
My servers both running Fedora were inaccessible via ssh. I would get the prompt which meant that sshd was running but whenever I entered my password, the session would freeze then time out.

I have faced this before and have never quite figured out what the root cause is. At this point, i was wondering if there is another alternative method to log in in the event ssh fails short of enabling telnet because of its security implications?

Anything along the lines of socat or netcat?
Given that you mention security, this might be out of the question, but have you considered SNMP?

SNMP on Linux can be set up to run/query external scripts. You COULD write a script to start telnet, and use SNMP to fire it off, thus opening the port when needed, if SSH is unavailable. Since it's your script, you could also have it try to bounce the SSH service first, and touch a temp file, so that if it's present when you issue that SNMP command again, it'll fire up telnet.

For reference:
http://www.net-snmp.org/wiki/index.p..._shell_scripts
https://access.redhat.com/site/docum...Extending.html
 
1 members found this post helpful.
  


Reply


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
can't access a remote server via ssh shemeza Linux - Newbie 11 03-18-2013 03:51 AM
ssh issue with remote server leejayd Linux - Newbie 10 03-09-2013 09:38 AM
Help with Ubuntu server remote ssh and local network ssh issues using putty. scottpops Linux - Server 8 05-17-2012 05:07 PM
SSH - Remote aplications in remote server Urien Linux - Newbie 11 04-04-2009 04:02 AM
SSH timeout on remote server investmentbnker75 Linux - Networking 3 04-11-2008 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:19 PM.

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