![]() |
|
|
|||||||
| 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 |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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 | ||
|
|
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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 |