The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
RHEL 4, simltaneous maximum ftp/telnet sessions allowed newbie07 UNIX for Advanced & Expert Users 2 01-14-2008 08:48 AM
RHEL 4, simltaneous maximum ftp/telnet sessions allowed newbie07 Red Hat 2 01-14-2008 06:03 AM
Telnet Session to AIX bluebee UNIX for Dummies Questions & Answers 1 08-07-2007 03:19 PM
User should not be allowed to change passwd brookingsd UNIX for Dummies Questions & Answers 3 01-23-2006 12:00 PM
User Access Problem: Via Telnet or even Console Vincent Garcia UNIX for Advanced & Expert Users 2 03-21-2002 05:57 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-26-2006
superdougl superdougl is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 3
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 (permalink)  
Old 10-27-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,929
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 11:14 AM..
  #3 (permalink)  
Old 10-30-2006
superdougl superdougl is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 3
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'....
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0