Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

FTP from server to server failure?

authentication setup

  • Please log in to reply
9 replies to this topic

#1 phpforfun

phpforfun

    Speaks fluent binary

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1056 posts

Posted 01 August 2008 - 07:38 PM

So the backups on my server have been down for a while, and I did some testing, it seems I cant FTP from my server to the backup server.

I can FTP to extreme-hq.com from my local computer just fine, but when I log into my server via SSH and try it, with the same host, username, and password, it says authentication failure.. any idea?

I checked the ports in my firewall, 22 is open for inbound and out.

:confused:
  • 0

#2 phpforfun

phpforfun

    Speaks fluent binary

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1056 posts

Posted 01 August 2008 - 07:43 PM

root@prs [//]# ftp extreme-hq.com
Connected to extreme-hq.com.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 22:42. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
500 This security scheme is not implemented
500 This security scheme is not implemented
KERBEROS_V4 rejected as an authentication type
Name (extreme-hq.com:root): toastedpenguin@extreme-hq.com
331 User toastedpenguin@extreme-hq.com OK. Password required
Password:
530 Login authentication failed
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.


Might it have something to do with

extreme-hq.com:root


  • 0

#3 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 03 August 2008 - 03:27 AM

Is that your username, toastedpenguin@extgreme-hq.com? It doesn't seem right and would usually be just toastedpenguin (without the @).

Also note that if you have firewall port 21open for FTP that you will be able to FTP into sites.. However, if you are using "Passive" mode it will try to transfer files (and list directories) on random, high-level ports such as 21234. When I use a firewall on servers I always switch FTP to "Active". This causes FTP to use port 21 for everything.
  • 0

#4 phpforfun

phpforfun

    Speaks fluent binary

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1056 posts

Posted 03 August 2008 - 11:57 AM

Jordan, toastedpenguin@extreme-hq.com is right, for sure...

ill enable active and see what happens

Net::FTP=GLOB(0x9cf444c)<<< 220---------- Welcome to Pure-FTPd [TLS] ----------
Net::FTP=GLOB(0x9cf444c)<<< 220-You are user number 1 of 50 allowed.
Net::FTP=GLOB(0x9cf444c)<<< 220-Local time is now 14:59. Server port: 21.
Net::FTP=GLOB(0x9cf444c)<<< 220-This is a private system - No anonymous login
Net::FTP=GLOB(0x9cf444c)<<< 220-IPv6 connections are also welcome on this server.
Net::FTP=GLOB(0x9cf444c)<<< 220 You will be disconnected after 15 minutes of inactivity.
Net::FTP=GLOB(0x9cf444c)>>> USER toastedpenguin@extreme-hq.com^M
Net::FTP=GLOB(0x9cf444c)<<< 331 User toastedpenguin@extreme-hq.com OK. Password required
Net::FTP=GLOB(0x9cf444c)>>> PASS ....
Net::FTP=GLOB(0x9cf444c)<<< 530 Login authentication failed
Net::FTP=GLOB(0x9cf444c)>>> QUIT^M
Net::FTP=GLOB(0x9cf444c)<<< 221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
Net::FTP=GLOB(0x9cf444c)<<< 221 Logout.
[cpbackup]: Unable to login to remote FTP server.

Thats from the log

When I SSH in the FTP to extreme-hq, I get this

root@prs [/]# ftp extreme-hq.com
Connected to extreme-hq.com.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 15:06. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
500 This security scheme is not implemented
500 This security scheme is not implemented
KERBEROS_V4 rejected as an authentication type

Name (extreme-hq.com:root): toastedpenguin@extreme-hq.com
331 User toastedpenguin@extreme-hq.com OK. Password required
Password:
530 Login authentication failed
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.


  • 0

#5 phpforfun

phpforfun

    Speaks fluent binary

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1056 posts

Posted 05 August 2008 - 01:19 PM

I talked to Orbit Support

Michael C. - Tuesday August 5th, 2008; 3:25 AM CDT
Dear Justin,

While I can completely duplicate the issue. I can ftp from another server without a issue, while attempting to use your credentials from your server it gets an authentication error.

This isn't a firewall issue I've confirmed this by stopping iptables. (I thought this unlikely but I had to verify it myself.) Now I also tried using lftp to verify that there was nothing wrong on the server, this recieved authentication errors after connection.

My belief is that on the remote server has an rule to block access from your server specifically. I don't believe this is a firewall rule itself, more hosts.deny or the equivalent for pure-ftpd. Unfortunately this will be the extent we will be able to to troubleshoot this issue as the remote server isn't hosted by us.

Thank you for choosing The Planet.

MichaelC
Technical Support
The Planet - Dedicated Servers | Managed Hosting & Managed Server Hosting


Maybe the servers IP is blocked.. **
  • 0

#6 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 05 August 2008 - 04:09 PM

I know that server you are trying to connect to didn't let me connect using an IP but did using a host-name. They do have funny rules there.
  • 0

#7 phpforfun

phpforfun

    Speaks fluent binary

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1056 posts

Posted 05 August 2008 - 06:52 PM

I know that server you are trying to connect to didn't let me connect using an IP but did using a host-name. They do have funny rules there.

But I am using the host name..

whoa, maybe you meant the other way around, it let me connect via the IP!
  • 0

#8 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 06 August 2008 - 04:30 AM

Really? I meant it the way you tried. So the IP works but not the hostname? Excellent.
  • 0

#9 xxxkings

xxxkings

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 10 August 2008 - 12:21 AM

then is there any confilict in the hostname???
_____________________________
Holidays Auto Insurance
  • 0

#10 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 11 August 2008 - 03:50 AM

Actually, he is now backing up to my server and I will be backing up to his server eventually. It will be a redundant backup scheme for us.
  • 0





Also tagged with one or more of these keywords: authentication, setup

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download