LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2017, 01:15 PM   #1
JuanVazquez91
LQ Newbie
 
Registered: May 2017
Posts: 1

Rep: Reputation: Disabled
Question Telnet Connection


Hello guys,

I need a script to verify the kind of connection (ssh or telnet), i have a buncho of devices that i need to check wich type of connection is ????

thank you
 
Old 05-31-2017, 03:00 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,973

Rep: Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403
Hello and welcome to LQ.

Not sure there is a 100% way of doing this.

If the devices are set to listen to standard ports and some standard user then you could possibly make a script to rotate through a list of mac addresses or ip addresses and try both ssh and telnet.

Companies sometimes install products like solarwinds to monitor systems.

Some networking tools are made to look for open ports and that may provide means to create table to then test for remote server reply.

When you are in the wild like this it may be time to force standards. Both ssh and telnet and the forgotten but usually open tftp may be a huge security issue.

Last edited by jefro; 05-31-2017 at 03:07 PM.
 
Old 05-31-2017, 03:08 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
"Verify connection" is too vague.

Have a look at http://bfy.tw/C6mZ for some examples, like https://stackoverflow.com/questions/...p-port-is-open

and how it looks "to you" may not be the same as what it looks from the outside. so be prepared to
utilize a couple of tools, or short scripts to cull it all together.

Last edited by Habitual; 05-31-2017 at 03:11 PM.
 
Old 05-31-2017, 03:09 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,933

Rep: Reputation: 7021Reputation: 7021Reputation: 7021Reputation: 7021Reputation: 7021Reputation: 7021Reputation: 7021Reputation: 7021Reputation: 7021Reputation: 7021Reputation: 7021
Quote:
Originally Posted by JuanVazquez91 View Post
Hello guys,
I need a script to verify the kind of connection (ssh or telnet), i have a buncho of devices that i need to check wich type of connection is ????
I replied to you earlier...seems my post was deleted.
 
2 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
JAVA: SSL Telnet connection "connection refused: connect" error kshaffer85 Programming 1 12-14-2013 07:06 AM
[SOLVED] another script for telnet connection socalheel Linux - Newbie 10 08-28-2013 01:23 PM
Serial connection through telnet cojniz Linux - Software 1 07-13-2006 05:38 AM
telnet, connection refused rsmereka Linux - Security 4 03-25-2005 02:14 PM
Telnet: Connection Refused Erice60rng Linux - Security 7 01-20-2003 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:26 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