LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-04-2013, 11:16 PM   #1
nevshank
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
Angry Unable to LOGIN via TELNET - Linux Server


Dear Folks,

I'm unable to Log-In to my customer site REMOTE SERVER - Linux (do not know what kind LINUX OS were installed and etc. Customer Server able to PING but the TELNET session (port 22) still tring to establish connection for very long period.....

Please advice and guide what to advice my customer site and whuat are the commands need to be used to check whether which ports are open and etc.

Actually we want to communicate via FTP to UPLOAD and DOWNLOAD files from it.

Thank you.
Nevshank
 
Old 07-04-2013, 11:19 PM   #2
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 262

Rep: Reputation: 59
Unless the hosting company did something very odd, 22 should be ssh rather than telnet. Assuming you have a username and password what happens with

ssh user@host

Telnet is port 23, not 22 and seldom used over WAN because it transmits in clear text.
 
1 members found this post helpful.
Old 07-05-2013, 02:51 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 622

Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by nevshank View Post
Actually we want to communicate via FTP to UPLOAD and DOWNLOAD files from it.
You are saying about three different methods and you are mixing all three.
You are trying to use telnet on port 22 and youwant upload and download via ftp.

ftp works on port 21
ssh works on port 22
&
telnet works on port 23

All three are different methods and can be used for file transfer.
You should be clear enough about your method.

and your method's port should be opened on the server as well as it should be well defined in firewall.
 
1 members found this post helpful.
Old 07-05-2013, 03:43 AM   #4
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 273Reputation: 273Reputation: 273
In addition, telnet is a service less secure than ssh
 
1 members found this post helpful.
Old 07-14-2013, 10:24 PM   #5
nevshank
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Unhappy SFTP

Quote:
Originally Posted by kooru View Post
In addition, telnet is a service less secure than ssh
YES Sir,

I do aggree ssh 22, telnet 23, sftp 21;

but my Remote Server Host ask me to TELNET "port 22" instead of "port 22" I wonder "WHY"

Than the ask me to USE "PUTTY" Login method which is "port 22" ssh; it did NOT WORK either,
unable to establish any connection, trace route, ping & etc.

I have NO clue what sort of FIREWALL or other Internet SECURITY devices parked in @ their REMOTE SERVER and don't know what are the PORT's need to be assigned or "ADD" inorder for me to establish the LOGIN - prompt (I do not know what is their LINUX OS too).

I have given my Internal Server IP and GATEWAY level IP, which they might seen when I did the "TRACE ROUTE."


Please advice and i NEED TO ADVICE MY REMOTE SERVER - Folks what need to be done @ their NETWORK site. also advive via "SCREENSHOT"

TQ

NEVSHANK
 
Old 07-14-2013, 10:35 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,208

Rep: Reputation: 341Reputation: 341Reputation: 341Reputation: 341
I would advise your client to shutdown all telnet, ftp, rsh, and rlogin services. And use ssh instead. You can then use ssh in place of telnet and rlogin, scp in place of rcp, and sftp in place of ftp. These "s" protocols are infinitely more secure than their telnet equivalents. Plus, they all use only one port, the ssh port (port 22 by default). Personally, I would not even bother trying to troubleshoot your clients telnet services - because they shouldn't be using those anyway! If they don't understand why not, you should tell them why not. (Hint: telnet is clear text, ssh is encrypted). If your client intentionally runs a telnet service on the ssh port, thinking this provides them some kind of added security, you should kindly point out the utter fallacy of their assumptions.

Can you ssh to their server currently, using your existing login/password you were trying with telnet?
 
1 members found this post helpful.
Old 07-14-2013, 10:54 PM   #7
nevshank
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Angry Putty LOGIN

Hi there haertig,


I could not get the LOGIN Prompt in Putty with port 22 ssh

I really do not have any clue what kind of LINUX Remote Server and etc.

They provide me the LOGIN ID and with "NO" password provided but I could not establish any connection "operatin 'Timeout' "


Please advice

TQ

Nevshank
 
Old 07-15-2013, 12:57 AM   #8
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,208

Rep: Reputation: 341Reputation: 341Reputation: 341Reputation: 341
Timeout sounds to me like you are probably hitting a firewall. Typically a firewall will just drop your packets with no reply. Eventually your end will timeout. If you were getting through to the server and trying to connect to a port with no service running, you would normally get a NAK packet, and your end would report "Connection refused".

When you telnet to the port, do you get a "connected" message and then nothing? That would tend to indicate a protocol mismatch as one possibility (telnet vs. ssh). Or do you get nothing at all and eventually timeout? That would tend to indicate you are hitting a firewall that is dropping your packets. Or, you might have the IP address of the remote server wrong, and are trying to connect to a nonexistant IP.

Are the people maintaining the remote server not technically competan? They should know what services their server is running and on what ports. And they should know their firewall setup as well. If they are totally clueless, I guess you could try some port scanning and fingerprinting of their server (nmap, nessus, etc. type stuff) to see if you can determine what's up. That's more of a hacker's way to get into a system than a normal access method. I wouldn't recommend unleashing these tools on their system without their permission, but if they're as clueless as they appear by your description, they probably wouldn't even notice.
 
1 members found this post helpful.
Old 07-15-2013, 09:12 AM   #9
eklavya
Member
 
Registered: Mar 2013
Posts: 622

Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by nevshank View Post

I do aggree ssh 22, telnet 23, sftp 21;
No sftp does not work on port 21, it is ftp which works on port 21. sftp and ftp both are two completely different things.
If you are talking about ssh that is sftp, that works on port 22.
Quote:
Originally Posted by nevshank View Post
but my Remote Server Host ask me to TELNET "port 22" instead of "port 22" I wonder "WHY"
what does it mean by "ask me to TELNET "port 22" instead of "port 22""
Quote:
Originally Posted by nevshank View Post
Than the ask me to USE "PUTTY" Login method which is "port 22" ssh; it did NOT WORK either,
unable to establish any connection, trace route, ping & etc.

I have NO clue what sort of FIREWALL or other Internet SECURITY devices parked in @ their REMOTE SERVER and don't know what are the PORT's need to be assigned or "ADD" inorder for me to establish the LOGIN - prompt (I do not know what is their LINUX OS too).
Are you using centOS, RHEL or similar linux distribution? Have you checked your IP tables settings?
Is the port is opened in IPtables?
 
Old 07-15-2013, 03:53 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521
If your remote service provider can not even provide a basic and competent support ... then
RUN and run away from as FAST as you can .

Find a different provider that is COMPETENT
 
  


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
unable to login using telnet manoj.linux Linux - Enterprise 10 11-10-2010 10:31 AM
Unable to telnet to Linux Host inspite of installing telnet-server RPM - Need Help sinamdar Linux - Software 7 04-11-2009 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration