Can you connect locally, e.g.
ssh -v localhost or
ftp localhost? If you can, then it's probably either the firewall or the ssh and ftp configuration.
Does your firewall set a default allow policy when you turn it off? If it does, nmap -sV should report the same thing locally and remotely? For example:
Code:
$ nmap -sV -p 22 localhost
Starting Nmap 4.00 ( http://www.insecure.org/nmap/ ) at 2006-02-21 08:38 EST
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 4.2 (protocol 2.0)
Nmap finished: 1 IP address (1 host up) scanned in 0.145 seconds
and
U:\utility\nmap-3.93>nmap -sV -p 22 10.225.40.23
Starting nmap 3.93 ( http://www.insecure.org/nmap ) at 2006-02-21 08:41 E. Australia Standard Time
Interesting ports on 10.225.40.23:
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 4.2 (protocol 2.0)
MAC Address: 00:11:43:C4:BD:AB (Dell)
Nmap finished: 1 IP address (1 host up) scanned in 16.343 seconds
If you get the same thing locally and remotely, can you post your sshd_config file since it may be related to that.
Lots of maybes there... sorry about that