The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How csf &apf work ? nitin09 UNIX for Advanced & Expert Users 0 02-27-2008 04:36 AM
How does it work? nat123 Linux 1 11-04-2007 09:13 PM
Script doesn't work, but commands inside work cheongww UNIX for Dummies Questions & Answers 2 11-14-2006 06:52 PM
awk may work! moxxx68 UNIX for Dummies Questions & Answers 0 09-07-2004 12:22 AM
Will this work? Ypnos Shell Programming and Scripting 5 07-24-2003 10:51 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-2003
yls177
 

Posts: n/a
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
telnet myhost 1234 cant work?

in myhost, i did a telnet myhost 1234, but got the below
Trying...
Connected to myhost.
Escape character is '^]'.
and just waits there...


in /etc/services i had the following
sftp 1234/tcp


then in my /etc/inetd.conf i had
sftpd stream tcp nowait meuser /usr/sftpd sftpd


i had tcpwrapper in myhost.
in hosts.deny, i had ALL:ALL
in hosts.allow, i had telnetd : 111.222.333.4


what is wrong? thanks
Forum Sponsor
  #2 (permalink)  
Old 02-24-2003
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
i dont understand if your trying to sftp, or telnet. /etc/services is a list of all (most) tcp/udp protocols and what port they run on. im not too sure what your trying to do, telnet or sftp, i can see that you want one of those to run on an unprivaliged port, (1234) right? to change that you have to configure the server, (telnet or sftp?) to listen on that port, then depending on if you want inetd to take care of it, then you would edit inetd accordingly, or if you want it to run as a daemon (stand alone) sftp and telnet usually are handled by inetd. so first of you wanna make sure you haev some telnetd services running, (probably if this is a default install) ----what is your OS?

ok well if you are trying to sftp then you have to use an sftp client, not telnet, it looks like thats why it just hangs there. you may have an sftp client already installed (again, most likley if you have the ssh/sftp server running)
so instead of:
telnet myhost 1234
try
sftp myhost 1234
also im not too sure about that IP address you have for tcpwrapper, is that just an example for us? also thats for telnetd not sftp, what you have.

Last edited by norsk hedensk : 02-24-2003 at 02:03 PM.
  #3 (permalink)  
Old 02-24-2003
yls177
 

Posts: n/a
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
i am on aix 4.3. i wanted to be able to do this telnet myhost 1234. however, port 1234 in /etc/services is defined as sftpd 1234/tcp.

the ip address for tcpwrapper is an example. can i add a line like sftpd : myhost in order for the below sftpd myhost 1234? i have tried, but it still cant work.
  #4 (permalink)  
Old 02-25-2003
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Don't modify /etc/services.
Use an sftp client to connect, not telnet.

You see that it connects (since there is a listening socket), but nothing happens after that because you're trying to use the wrong protocol. I don't know enough to say what's happening behind the scenes, but I'd guess that sftp is trying to handshake, and telnet doesn't understand it (because it's not an sftp client!), so it tosses the "junk" that's being sent to it.

See if you have the "sftp" command on your system.
  #5 (permalink)  
Old 02-25-2003
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
livinfree is right, /etc/services defines the standards, you can whatever server you want to run on any port you want by configuring that server to listen on the specified port. however you probably should stick to the standard ports for the corresponding protocol, unless you have some sort of ISP restriction or something like that.
Google UNIX.COM
Closed Thread



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 07:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102