Go Back   The UNIX and Linux Forums > Operating Systems > Solaris


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-03-2012
Registered User
 
Join Date: May 2009
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Why is sftp working but ftp not

I am not very familiar with the use of FTP, and trying to run it I found out that standard "ftp" is not working" but "sftp" is.
If sftp is allowed will that block ftp ? and if so where is this set ?
I thought there is no relationship, is that right ?
If so look here:
inetadm | grep ftp
enabled online svc:/network/ftp:default

and trying to ftp localhost I get:
server-manni2:/etc$ ftp localhost
Connected to localhost.
220 server.abc.def.com FTP server ready.
Name (localhost:manni2):
331 Password required for manni2.
Password:
530 Login incorrect.
Login failed.
ftp>

thanks
Sponsored Links
    #2  
Old 07-03-2012
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Location: Paris
Posts: 4,137
Thanks: 14
Thanked 398 Times in 366 Posts
Outside their similar names and interactive user interfaces, there is no relationship between ftp and sftp.

If ftp refuses your login, makes sure you provide the correct password, your account isn't black-listed for ftp (i.e. not present in /etc/ftpusers) and its login shell is valid.
Sponsored Links
    #3  
Old 07-03-2012
Registered User
 
Join Date: Sep 2011
Posts: 83
Thanks: 2
Thanked 10 Times in 10 Posts
sftp is actually ssh based rather than ftp, for example, WinSCP uses SFTP as it's default transfer method. This means if you can SSH to a node, you can SFTP files to/from it.
    #4  
Old 07-03-2012
Registered User
 
Join Date: Mar 2010
Posts: 286
Thanks: 11
Thanked 34 Times in 32 Posts
Hello,
I'm also not a ftp expert, but I believe You need to configure the FTP server.
here is a link to manual on Oracle Administering the FTP Server (Tasks) - System Administration Guide: Network Services

Most admins disable ftp because ftp transmits your password in the clear. I use scp which is much easier to use and is uses the same security as ssh. So if you setup ssh key they will work for scp as well.
Sponsored Links
    #5  
Old 07-03-2012
methyl methyl is offline Forum Staff  
Moderator
 
Join Date: Mar 2008
Posts: 6,388
Thanks: 286
Thanked 668 Times in 640 Posts
The error response in post #1 just looks like a wrong password. Beware that some passwords which are valid unix passwords are not valid in ftp (even for the same account). Typical issues are passwords containing Shell special characters or passwords longer than 8 characters (6 characters on old systems).

Afterthought: You did type the password to account manni2 rather than just hit the return key?

Last edited by methyl; 07-03-2012 at 04:47 PM..
Sponsored Links
    #6  
Old 07-04-2012
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Location: Paris
Posts: 4,137
Thanks: 14
Thanked 398 Times in 366 Posts
@bitlord: the ftp service isn't disabled in the OP case.

@methyl: have you references of the password processing discrepancy you are mentioning ? That would be quite a serious bug and in any case shouldn't apply to Solaris which uses the very same method to check login credentials and ftp ones.
Sponsored Links
    #7  
Old 07-04-2012
methyl methyl is offline Forum Staff  
Moderator
 
Join Date: Mar 2008
Posts: 6,388
Thanks: 286
Thanked 668 Times in 640 Posts
@jlliagre
Hmm. There was a recent post from someone who had a dollar sign in their password. Try it on your version of Solaris, it might work or it might not. Depends on the version of Solaris and the context.

A hash sign in a password is fun. Try it.

The password-length issue is nothing new.

Let's see what Solaris version the O/P posts.
Let's see if the O/P didn't type the password.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SFTP Not Working With CRON PatrickPurfield UNIX for Advanced & Expert Users 12 01-25-2011 10:42 AM
SFTP not working in the background JerryHone UNIX for Advanced & Expert Users 0 08-19-2010 07:13 AM
Automate SFTP is not working senthil_seera Shell Programming and Scripting 2 10-11-2008 09:37 PM
sftp not working as cronjob tungaw2004 UNIX for Dummies Questions & Answers 3 01-10-2008 07:27 PM
SFTP not working in cron ewilson0265 Shell Programming and Scripting 4 12-02-2007 10:29 AM



All times are GMT -4. The time now is 03:23 AM.