Server :: Vsftpd: Can Connect Remotely But Not Locally?
Jan 31, 2011
I'm running vsftpd-2.2.2 on Slackware 13.1 and I'm behind a NAT with a dynamic IP. I'm using pasv_address, which makes it necessary to have a crontab that checks whether my IP has changed, and if it has, edits the conf and restarts vsfptd. It's hackish but it works. I have also enabled FTPES on the same port that normal FTP runs. I have allowed only the 5001:5003 ports and I am aware that the recommented is 50 ports. However I never had an issue with the transfers since I'm the only user and have at maximum two simultaneous transfers.
I can connect remotely with FTP and FTPES with every client I tried but I'm having issues locally. FileZilla refuses to connect on FTP and FTPES. WinSCP can connect on FTP but not FTPES. Issues are gone if I enable pasv_promiscuous, which the manpage strongly recommends not to use unless "you know what you're doing". I don't. Why is this happening? And, can I fix the local connections without resorting to pasv_promiscuous?
Here is my config and log files from a failed local attempt.
I'm having issues with my SSH server.The server is running on a Slackware 13.37 machine, using the default SSH server software, which I believe is OpenSSH.On my Windows machine, I've tried connecting to my Slackware machine but can only do so using the external IP, not the LAN IP, instead I get a "Connection Refused" error using PuTTy. I've forwarded port 22 for both UDP and TCP packets to my Slackware machine.I don't really know what information you need so just ask me and I'll respond to the best of my abilities.
I have a home server that I was able to up and till recently able to connect to externally and internally but something has changed. I can't connect through vnc, putty or ftp. if I ping the local address it can't be found. If I try to get to it using its external IP address I can get to the server and put in my user name but it wont accept my password.If I go to the server and use the password it works fine.
I've got an SSH server setup on my box which is running locally fine. I can connect to it through my local laptop but when I try to connect through the internet either via my IP or using the DynamicDNS I have setup both get an operation timed out message.I've got firestarter running with an inbound policy to allow connections from any host to port 22. I've also gone into my Netgear router and selected to forward any inbound connections to port 22 to the IP of the box that's got the SSH server on it.
Even with all this the connection just isn't being made. I've also tried temporarily setting the DMZ option on the router to forward all inbound connections to the IP of the Ubuntu box but still get the same Operation time out. Is there any other options that wouldn't allow remote connections via SSH? Or am I missing something hugely obvious here? Maybe it's possible to connect to SSH via a different port or something?I'm running Ubuntu 10.4 and have installed openssh-server via Synaptic. Would be great to get this working so I can use it as a tunnel from work and access the VNC, which I've been told should be done via SSH anyway.
Is it possible for me to SSH to another server in Linux (Ubuntu), run a program there but display it locally?And is it possible for me to SSH to another server in my terminal,and configure it so that all graphical programs (Firefox, Emacs) run in that SSH session will be displayed locally?
I need to run a (Tcl, or whatever) script on a remote Unix machine, from a (local) Windows command shell, and I want the stdout/stderr of the script to show up in the Windows CLI. The exit code would also be useful.
I can set my EDITOR variable in my .bashrc to e.g. gedit, which is a nice graphical editor on ubuntu. But when I log in over PuTTY that editor will fail.What is the best way to detect if I'm logged in and can run a graphical editor, or not, and set EDITOR appropriately?
every time I try to connect to the ftp server I setup i am recieving this error Response:*** buffer overflow detected ***: /usr/sbin/vsftpd terminated Error:Could not connect to server
Kernel: Linux 2.6.26-2-686 (i686) Compiled: #1 SMP Thu Nov 25 01:53:57 UTC 2010 C Library: GNU C Library version 2.7 (stable) Distribution: Debian GNU/Linux 5.0.8 Desktop Environment: GNOME 2.20
Gnome comes with Vino Remote Desktop as part of it's package. I want Vino to run at boot so that I can login remotely. I am using VNC-4.1.3 for remote viewing. However, I can only view remotely once I have logged-in locally.
I have 5 PCs running windows XP and I want to remotely connect to a server that has Ubuntu. I want all of them to have their own passwords and own desktops something like Remote desktop in windows and each one can run his programs separately.
I just made a Ubuntu Server install in a virtual machine and am having trouble setting up FTP to transfer files. I've installed LAMP and vsftp. The web server works great, but FTP gives a connection refused error locally and remotely from the host machine. 'Connection attempt failed with "ECONNREFUSED - Connection refused by server".' nmap localhost doesn't list FTP as open even though I have vsftpd set to listen. I've tried restarting vsftpd with no luck.
I succeeded in setting up a vnc server on a fedpra9 tested it locally and it was successfully connected but no connection done from other machine in the network , even though they can see each othervnc server is pingable se linux is disabled
I am new to Ubuntu and have been trying to make a remote connection to my home server. I think I almost there. Here's what I have done:
1) Installed Ubuntu Server 10.0 on a Pentium 2 with 256K 2) Installed SSH, MySQL, desktop GUI and enabled remote access 3) Port forwarded my Lynksys to 5900:22 and 80 4) installed Putty and TightVNC Viewer 5) Obtained a DynDDS account
My interanl IP Addy = 192.168.x.yyy My External IP Addy = 76.xxx.y.zzz
When I run Putty, the connection times out (which I am guessing that my server may not be setup correctly). Since I am configuring all this at home, I am unable to simulate a true remote access unless I go to an outside location. Is there a way to test my connection from outside my network rather than waiting to login remotely from a place other than my home?
Tried turning firewall off, i tried port forwarding tcp port 22, but it still doesn't work. Also am unable to ping modem over WAN, i can ping the modem locally though. Tech support claims pinging and ssh is not part of the internet so they wont support it in any way.
I have a server at home running as a file server and DHCP connected to a switch with a wireless AP in there as-well. with this setup I can access the files and do some configurations via SSH on the actual server anytime I'm able to get the wireless signal, now lately I felt the need to be able to do the same but this time over the internet. I've read somewhere already that I'm gonna need a router with port forwarding and NAT, then know the IP address of the server but my problem is once you start talking about routers then you need broadband connection which is something I don't have. Getting a router is not much of a problem but without ADSL like connection I guess its useless, what do I need to do?
I have installed vsftpd and I configured the whole package and everything worked. But, after a reboot, it doesn't work anymore. Vsftpd is running. When I do "telnet localhost 21" the machine gets connected to localhost. It also succeeds when I type "192.168.2.10" (my internet IP address) or "86.80.107.30" (external IP address). So the connection is fine. I configured vsftpd to allow only given users, in this case the user bourne. Everyone else isn't allowed to use vsftpd. My main account is stan. So when I connect to the machine via SSH, I'm logged in as 'stan'. When I try to log in to the FTP server with "ftp localhost" and I fill my own username I get an error message saying permission is denied, I don't get a chance to enter my password. When I fill in the username 'bourne' it asks for a password, I enter it, and I get the message 'login incorrect'.
But now it's getting weird: When I switch to the user bourne in the shell by 'su bourne' and enter the same password for FTP, I get logged in as bourne. Then, when I enter 'ftp localhost', fill in the username 'bourne', enter its password, the login is succesfull! It doesn't matter where I connect to (local IP, external IP, localhost, or computer name) I get connected with the user bourne as long as I'm logged in to the shell with this user. Otherwise it doesn't work. Does anyone know why? Below is the config file of vsftpd:
I set up a ftp server using VSFTPd. Remote connections are working fine. I can connect then create, rename and delete folders. I can upload files without any issue. BUT, each time i connect directly from the server (with the command "ftp localhost") i can't upload files either delete them. The only thing i can do is create folders. I'm getting error code "553: could not create file" when trying upload files. I triple checked the rights, everything is OK. I disabled SELinux (even if i don't like it). The weirdest thing is everything's working fine from remote host.
i have ubuntu 10.04 lucid i used gnome-file-share-properties to enable remote desktop i have samba i have ping from remote computer to my ip address and computer name and etc but still i can't connect remotely via rdp or at least not via windows xp rdp what do i need to fix to enable this?
i have a computer at another house that i would like to controll from my house (both run ubuntu lucid lynx) how do i connect to the other computer using the viewer and remote server pre-installed in ubuntu
I have my Linux box in my Lan environment. I want to connect my Linux computer remotely from my windows PC using command line . how can I connect it remotely over the Lan ?
Just throwing in a quick question to see if anyone got any ideas about this.I'm unable to create a remote X session with TightVNC viewer. The local computer is a windows XP box and the remote server is running Slackware 13.
Using Putty on the XP box to connect to Xvnc through a ssh tunnel works just fine. However, when I fire up TightVNC viewer and try to connect to 127.0.0.1 as I'm used to, TightVNC viewer is unable to establish a connection to X. I'm puzzled.
This has worked when I used another XP box as local computer. I'm running all within my LAN. Can this be a firewall/iptables issue? I've obviously posted this in wrong forum category. Sorry about that. Starts this thread in server category too.
I just succesfully installed Centos 5.5 64bit with following package:
- httpd 2.2.3-43 - php-mysql 5.1.6-27 - mysql 5.0.77-4
and all these packages are running ok.
My question is how do i connect from Centos to another MSSQL server using PHP? I had read several article but cannot find the best way to achieve this because most of the instruction seems to be quite complicated. I found somewhere in this forum that all it need just this simple command: "yum --enablerepo=extras install php-mssql freetds". While others article said that i need to install "FreeTDS" and some ODBC driver. I'm a little bit curious since most of that article are using an older version of Centos and PHP.
I'm having a peculiar problem. I have VSFTPD working and everything works great on my local network! The only problem is that I can't get PASV mode to work over the WAN.
I've tried everything:
- making sure the pasv_enable, pasv_min_port, and pasv_max_port variables are set in vsftpd.conf
- punching holes in Shorewall for these ports via rules
- setting up port forwarding for these ports in my routers (although this might be unnecessary)
The problem, is PASV mode works fine when I access from either router (my server is behind two routers but not from my WAN IP. Could this be a problem with my ISP?
I'm running Ubuntu on a Zotac home theater PC. I wish to connect from another PC prior to login. The reason is that the home theater system has no convenient display. I've succeeded in getting a connection prior to logon from a PC using TightVNC. I've also tried Teamviewer running in Ubuntu without success. I'm now experimenting with X windows, but it seems complicated.
TightVNC is working well ecept that it opens a new session and I'd rather share the same session on Display 0. how best to connect to my Ubuntu home theater PC prior to logon and share the same session.
When ever i try to login to my ftp server(linux, fedora) through filezilla or cuteftp then its giving error even if login details are correct. Its are working fine locally but remotelly its giving error when ever i try to connect to it using external ipaddres or domainname. the error is as follows Status:
Connected with [URL]. Waiting for welcome message... Status:Connecting to host1.domain.com ... Response:220 (vsFTPd 2.0.5) Command:USER test
But if i try to connect to ftp server via brower(internet explorer or mozilla). ITs working fine.I dont know what is the reson behind this. few days back it was working fine through filezilla or cuteftp. proxy setting are also fine. its the same which i was using few days back.