LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-12-2004, 09:37 PM   #1
Alien18
LQ Newbie
 
Registered: May 2004
Posts: 18

Rep: Reputation: 0
Arrow Telnet


Hey! Can any 1 tell me how to use and how to start telnet. I've tried to connect to my friend's computer but i got confused and i didnt knew what to do.
 
Old 05-12-2004, 09:41 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
telnet ip_address porn_number

easy
 
Old 05-12-2004, 09:47 PM   #3
Alien18
LQ Newbie
 
Registered: May 2004
Posts: 18

Original Poster
Rep: Reputation: 0
hey thanx a lot! this helped me a lot! =)
but then i have another question...... what do i do next?
lol
 
Old 05-13-2004, 02:34 AM   #4
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
That depends on what you want to do; transfer files, root around his box?
 
Old 05-13-2004, 09:12 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
telnet is a program which makes a tcp connection to anouther port on anouther machine.

any keys you type into telent will be sent down the connection as raw data.
and any raw data which the machine sends to you will be echo's into the window.

to telnet can do anything, providing that you understand the protocol.

example.

telnet (your_smtp_server) 25

and then have a conversation with the server....
for example, this conversation sends an email from address1 to address 2

Quote:
[chris@local chris]$ telnet (my_smtp_server) 25
Trying (my ip address)...
Connected to (my smtp server).
Escape character is '^]'.
220 mta09-svc.(my_server).com ESMTP server (InterMail vM.4.01.03.37 201-229-121-137-20020806) ready Thu, 13 May 2004 14:05:16 +0100
HELP
214-This SMTP server is a part of the InterMail E-mail system. For
214-information about InterMail, please see http://www.software.com
214-
214- Supported commands:
214-
214- EHLO HELO MAIL RCPT DATA
214- VRFY RSET NOOP QUIT
214-
214- SMTP Extensions supported through EHLO:
214-
214- EXPN HELP SIZE
214-
214-For more information about a listed topic, use "HELP <topic>"
214 Please report mail-related problems to Postmaster at this site.
HELO (MY IP ADDRESS)
250 mta09-svc.(my_server).com
MAIL FROM (my_email)
501 Usage: MAIL FROM:<sender>
MAIL FROMmy_email)
250 Sender <(my_email)> Ok
RCPT TOmy_email)
250 Recipient <(my_email)> Ok
DATA
354 Ok Send data ending with <CRLF>.<CRLF>
hello world
how are you today ?
this is a test email

.
250 Message received: 20040513130654.KOYJ23020.mta09-svc.(my_server).com@[(server_ip)]
quit
221 mta09-svc.ntlworld.com ESMTP server closing connection
Connection closed by foreign host.
[chris@local chris]$
(obviously ive cencorwed my email adds, ip adds and servernames.

and all the lines that start with a number starting from "Escape character is"
are the server talking... and all the lines that do not start wit a number down from "escape char is" were typed by me.

dont you love the smtp protocol ?

you can do this with prett much anything that communicated in plain text.

try

telnet yahoo.com 80
GET /

that will send you html text.

Last edited by qwijibow; 05-13-2004 at 09:16 AM.
 
Old 05-13-2004, 01:47 PM   #6
RockmanExe
Member
 
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Rep: Reputation: 30
Quote:
Originally posted by qwijibow
telnet ip_address porn_number

easy
hehehe i see what's on your mind
 
Old 05-13-2004, 05:44 PM   #7
Alien18
LQ Newbie
 
Registered: May 2004
Posts: 18

Original Poster
Rep: Reputation: 0
yea i was actually wondering how to send files like music or patches for games, but i would be really grate full for all additional info.
oh and thanx a lot for that mail box thingy u just showed me!!! its really kool.
 
Old 05-13-2004, 06:10 PM   #8
Khabi
Member
 
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Rep: Reputation: 15
Well, if you're looking to send files I would either use just regular FTP or SFTP (I ALWAYS prefer SFTP)
Quote:
[rick@Tux rick]# ftp friends_IP_address
Connected to friends_IP_address (*.*.*.*).
220 (vsFTPd 1.2.0)
Name (friends_IP_address:rick):
from there you enter your username and password as it asks for them. To upload files you use "put /directory/to/local/file /directory/to/upload/file/to" and to download the file you use "get /directory/to/file" to change directories use "cd directory_name" and to list files "ls". Thats basicly the gist of it.

Also if you can avoid using telnet, by all means do... Its a horrible protocal. Use SSH instead to connect its encrypted and more secure. It works the same way, except you can't use it for anything but ssh connects (AKA you can't do that mail trick with it), but other then that its the same as ssh because its a remote shell.

So I'm even more helpfull here are some basic *nix commands to get you started when your telnet'd or ssh'd into that machine.
ls = list files
cd directory_name = change directory
cat file_name = display contents of a file
emacs file_name = edit file
vi file_name = edit file
 
Old 05-13-2004, 08:06 PM   #9
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
hahahahaha....

thr R ant N key are miles apart...

god knows how i got that wrong !
 
  


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
How do I setup telnet on Fedorac1 so I can telnet to it from winxp? mman49 Fedora 6 05-02-2004 01:40 PM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 06:13 AM
Telnet localhost and telnet IP seb77 Linux - Newbie 4 10-15-2003 04:15 PM
enable telnet but can't telnet from the computer guanyu Linux - Networking 8 08-26-2002 07:34 AM
telnet local but no-telnet via internet blacksheep Linux - Networking 7 11-26-2001 03:33 PM


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