sftp problem with user id of no telnet session allowed


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users sftp problem with user id of no telnet session allowed
# 1  
Old 10-27-2006
sftp problem with user id of no telnet session allowed

We used to have a ftp user id with no telnet session allowed in server side.
We used this ftp user id in script by transferring file from client to Server.

Currently we need to implement sftp to replace ftp.

We have tested few round and working fine by using sftp with normal user id (allow telnet session).

However, when we use the ftp user id with no telnet session, the ftp straight away give the followng message "Connection Closed".



When we ssh'ing, the message is as follow :
/usr/bin/notelnet: Exec format error
Connection to xxx.yyy.zzz.com closed.
(which is correct, but the user id not allow telnet)


When we sftp, the message is as follow :

$ sftp <userid>@xxx.yyy.zzz.com
Connecting to xxx.yyy.zzz.com ...
Password:
Connection closed

I wonder if there are any setup required for ftp user id with no telnet session can execute sftp command.

Thanks.
# 2  
Old 10-27-2006
Does this no-telnet-login setting disallow ssh shell logins as well? It's my understanding that sftp needs remote login, since it runs on top of an ordinary login connection to sshd.

You might find the scponly pseudoshell useful. When a user's login shell is scponly, they will be able to use sftp and scp, but won't get an interactive shell when they login with ssh.

Last edited by Corona688; 10-27-2006 at 12:14 PM..
# 3  
Old 10-30-2006
Quote:
Originally Posted by Corona688
Does this no-telnet-login setting disallow ssh shell logins as well? It's my understanding that sftp needs remote login, since it runs on top of an ordinary login connection to sshd.

You might find the scponly pseudoshell useful. When a user's login shell is scponly, they will be able to use sftp and scp, but won't get an interactive shell when they login with ssh.
Thanks Corona688,

I think I have figured it out, I've changed the shell to SFTP server subsystem (sftp-server) and now I can access sftp without having the telnet-login setting. The disadvantage is, normal ftp is no longer valid, user must use 'sftp' to transfer file instead of 'ftp'....
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. HP-UX

ssh session getting hung (smilar to hpux telnet session is getting hung after about 15 minutes)

Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies

2. UNIX for Advanced & Expert Users

RHEL 4, simltaneous maximum ftp/telnet sessions allowed

Hi Users, Kindly help me with below query of mine. Using Red Hat Linux Enterprise Edition as the client how many simultaneous 1) Maximum FTP sessions are allowed 2) Maximum Telnet sessions are allowed 3) any special settings need to be enabled for maximum telnet and ftp sessions on... (2 Replies)
Discussion started by: newbie07
2 Replies

3. Red Hat

RHEL 4, simltaneous maximum ftp/telnet sessions allowed

Hi Users, Kindly help me with below query of mine. Using Red Hat Linux Enterprise Edition as the client how many simultaneous 1) Maximum FTP sessions are allowed 2) Maximum Telnet sessions are allowed 3) any special settings need to be enabled for maximum telnet and ftp sessions on... (2 Replies)
Discussion started by: newbie07
2 Replies

4. UNIX for Dummies Questions & Answers

Telnet Session to AIX

Hello, I have AIX 5.3 at home connected to netgear router. Port Forwarding has been enabled on the router. Problem is that if I want to telnet, I have to try 2 or 3 times before I can get a logon prompt. It times out for first or second time (Connection to session <IP_Address> failed: Connection... (1 Reply)
Discussion started by: bluebee
1 Replies

5. UNIX for Dummies Questions & Answers

User should not be allowed to change passwd

Hi Group, Can anyone assist me with this? I am on AIX 5.2 ML06. I create the user and assign a passwd. But I do not want the user to change the passwd at all. I like him/her to use the passwd that I have set for him/her. Any ideas would be highly appreciated!!! Thanks. (3 Replies)
Discussion started by: brookingsd
3 Replies

6. Shell Programming and Scripting

Telnet Session

{ sleep 2 echo "$user" sleep 2 echo "$password" sleep 2 echo " ls" sleep 10 echo "exit" }| telnet $server I have a machine x and i have executed the above script on machine 'x'. i entered the... (6 Replies)
Discussion started by: pathanjalireddy
6 Replies

7. Shell Programming and Scripting

Telnet session does not expire

Dear friends.. Our project has a module that runs on handheld devices. Through the handheld we telnet to solaris where the application actually runs. I noticed that after starting a session through the handheld, if i go out of range or if i remove and replace the battery in the handheld, the... (1 Reply)
Discussion started by: deepsteptom
1 Replies

8. UNIX for Dummies Questions & Answers

telnet session timeout

hi, we can set something such that if the user has been idle for a while, it will auto disconnect. where to do so? thanks (6 Replies)
Discussion started by: yls177
6 Replies

9. UNIX for Advanced & Expert Users

User Access Problem: Via Telnet or even Console

Just took over a UNIX Server from someone who left our company. Having problems with access by some existing users as well as new users. I get the following message from telnet sessions, when attempting access at the "Login:" prompt: "UX:in.login:ERRO: Login incorrect" "telnetd:Unable to... (2 Replies)
Discussion started by: Vincent Garcia
2 Replies
Login or Register to Ask a Question