telnet myhost 1234 cant work?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers telnet myhost 1234 cant work?
# 1  
Old 02-24-2003
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
yls177
# 2  
Old 02-24-2003
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 06:03 PM..
# 3  
Old 02-24-2003
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.
yls177
# 4  
Old 02-25-2003
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  
Old 02-25-2003
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.
# 6  
Old 02-26-2003
i did a find on sftp but could not find anything. also, i have found out that this contains
sftp commands, http://www.cs.unc.edu/help/sftp/commands.html. however, after i did a telnet myhost 1234, the sftp commands that issued do not reply to my instructions. what could be wrong? thanks
yls177
# 7  
Old 02-26-2003
Telnet will not work with sftp. Telnet is plaintext, and sftp is encrypted. They will not work together.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

PING to AIX works but TELNET FTP SSH doesn't work

root@PRD /> rsh DR KFAFH_DR: protocol failure due to unexpected closure from server end root@PRD /> telnet DR Trying... Connected to DR. Escape character is '^]'. Connection closed. root@PRD /> ftp DR Connected to KFAFH_DR. 421 Service not available, remote server has closed connection... (2 Replies)
Discussion started by: filosophizer
2 Replies

2. IP Networking

Discussion at work, would a router work pluging a cable in wan1 and lan1?

hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view situation a router, with linux of some sort, dhcp client requesting for ip in wan1 (as usual with wan ports) dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies

3. Shell Programming and Scripting

Add "1234" to specific field in second column

i have this file 073274753,0544901701,20101201,000316 038873722,69647455,20101130,235257 26213399,0545335767,20101201,000930 063330167,0566000101,20101201,000226 026773376,11966,20101130,234429,1194 075431120,0565900600,20101201,000428 75431120,0565900600,20101201,000538... (6 Replies)
Discussion started by: maxim42
6 Replies

4. UNIX for Dummies Questions & Answers

Difference Between Krb5-telnet And Ekrb5-telnet

Hi, I want to know the difference between these two services. Both are under xinetd. Both are used for enabling and disabling Telnet service. So, can somebody please explain me the difference between the two ? Thanks in advance :) (0 Replies)
Discussion started by: kashifsd17
0 Replies

5. UNIX for Dummies Questions & Answers

sendmail[1234]: [ID 702911 mail.alert] dowork: sl_hrtob failed

When changing my server back as the mail server, I get the following error: sendmail12345]: dowork: sl_hrtob failed When looking at previous posts similar to my issue, none of them work. I do not have DNS and have ensured that the mail domain is correct. Can anyone else help out with... (2 Replies)
Discussion started by: PuterGirl5
2 Replies

6. Shell Programming and Scripting

if ps -p 1234 reports nothing, echo something

I have a script that I need to put in some checking. It would read something like this but I need help with the exact notation: #!/bin/bash while true if #process is no longer reporting as up echo "process 1234 has fell" exit 1 # exit script fi sleep 1 #end of scriptAny help greatly... (2 Replies)
Discussion started by: ajp7701
2 Replies

7. UNIX for Dummies Questions & Answers

Automatically login in the telnet from present telnet

Hi, I was writing one script which includes to switch to the another telnet automatically from the present telnet server. I was using rlogin but firstly it takes the same user name of the present telnet and secondly it is prompting for the password. But i want to switch to the another telnet... (2 Replies)
Discussion started by: Prateek
2 Replies

8. Shell Programming and Scripting

Perl variables inside Net::Telnet::Cisco Module doesn't work

I am writing perl script to configure Cisco device but Variables inside Net::Telnet::Cisco Module doesn't work and passed to device without resolving. Please advise. here is a sample of script: use Net::Telnet::Cisco; $device = "10.14.199.1"; ($o1, $o2, $o3, $o4) = split(/\./,$device);... (5 Replies)
Discussion started by: ahmed_zaher
5 Replies

9. UNIX for Dummies Questions & Answers

How to find all files containing "1234" in their inode number?

Hi, if there are 3 files with the following inode numbers: 012345 012346 012347 is there a way to find all those files containing "1234" as inode? i found out that i cant use any wildcards. or i just didnt put them in the right way. find . -inum ... ? thanks 4 help. devil (2 Replies)
Discussion started by: daredevil82m
2 Replies

10. Shell Programming and Scripting

Webpage to Telnet via Perl and Expect: Telnet problem?

Somewhat long story: I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage. This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies
Login or Register to Ask a Question