Trying to setup a FTP server on a EC2. I have installed vsftp and followed this  When I try to connect with the -p option I cannot pass any command. Everything is smooth without it. I have setup vsftpd.conf: allow_writeable_chroot=YES pasv_address=&lt;my-ip&gt; pasv_enable=Yes pasv_min_port=50000 pasv_max_port=51000 port_enable=YES  And opened the port (20-21 &amp;&amp; 50000-51000 using Terraform here) resource &quot;aws_security_group&quot; &quot;ftp_passive_port&quot; {   name = &quot;ftp_passive_port&quot;    description = &quot;Access to FTP passive&quot;   vpc_id      = aws_vpc.din_vpc.id    ingress {     from_port   = 50000     to_port     = 51000     protocol    = &quot;tcp&quot;     cidr_blocks = [...]   }    # Allow all outbound traffic.   egress {     from_port   = 0     to_port     = 0     protocol    = &quot;-1&quot;     cidr_blocks = [&quot;0.0.0.0/0&quot;]   } }  I got this error : Connected to xxxxxxxx. 220 Welcome to XXXXX FTP service. Name (xxxxx:qwerty): xxxxxxxxxx 331 Please specify the password. Password: 230 Login successful. ftp&gt; ls 227 Entering Passive Mode (0,0,0,0,198,19). ftp: connect: Connection refused ftp&gt; bye 221 Goodbye.
121677
As said in the title, I don't manage to connect my Windows 10 host to my FTP server on the VirtualBox guest side (Ubuntu 18.04). On the guest side, the vsftpd server works fine, I can connect without any problem.   So I tried to forward the associated port to the host (NAT) and tried to connect to the server via FileZilla. It does login, but always fails to retrieve directory listing. I tried deactivating the firewalls, giving all the access permissions to the folder but it doesn't change anything.  I read that it could be a problem of passive mode there:     So I added the following lines to :  pasv_enable=YES pasv_min_port=8020 pasv_max_port=8020 port_enable=YES pasv_address=127.0.0.1   I forwarded the port 8020 but I now get the following error on FileZilla:     The data connection could not be established: WSAEADDRNOTAVAIL - Cannot assign requested address   Full FileZilla response:  Status: Connecting to 127.0.0.1:2100... Status: Connection established, waiting for welcome message... Status: Server does not support non-ASCII characters. Status: Logged in Status: Retrieving directory listing... Command:    PWD Response:   257 "/home/cakephp" is the current directory Command:    TYPE I Response:   200 Switching to Binary mode. Command:    PASV Response:   227 Entering Passive Mode (0,0,0,0,31,84). Command:    LIST Error:  The data connection could not be established: WSAEADDRNOTAVAIL - Cannot assign requested address Error:  Connection timed out after 20 seconds of inactivity Error:  Failed to retrieve directory listing Status: Disconnected from server   I'm a bit lost with this, does anybody have a suggestion? Thanks in advance    EDIT1: Without any kind of hope, I also tried to access from the Windows Command Prompt. It does connect but when I ls the current folder I get the following error: 500 illegal PORT command. 425 use PORT or PASV first. But I guess that this is because .  Just in case it can help, you can find here . Also, I can seamlessly access to the guest SSH server from the host with Putty.  EDIT2: I set listen_ipv6 to YES, changed pasv_max_port to 8030 to increase the number of passive ports and forwarded them. I get the following logs from FileZilla:  Status:  Connecting to 127.0.0.1:2100... Status: Connection established, waiting for welcome message... Status: Server does not support non-ASCII characters. Status: Logged in Status: Retrieving directory listing... Command:    PWD Response:   257 "/home/cakephp" is the current directory Command:    TYPE I Response:   200 Switching to Binary mode. Command:    PASV Response:   227 Entering Passive Mode (0,0,0,0,31,90). Command:    LIST Error:  The data connection could not be established: WSAEADDRNOTAVAIL - Cannot assign requested address Error:  Connection timed out after 20 seconds of inactivity Error:  Failed to retrieve directory listing
40484
I'm trying to redirect a single port to a local server via IPtables.  Currently I have the following rules:  iptables -t nat -A PREROUTING -p tcp -m tcp --dport 55555 -j DNAT --to-destination 10.188.44.125:3306 iptables -t nat -A POSTROUTING -j MASQUERADE   When I have these rules in place, my rsync process of ssh fails.  I'm assuming something here is conflicting, but I'm not sure what.  Any suggestions?  Thanks!  Update: Here are the rules I have in place to allow the rsync over ssh connection.  My input policy is set to drop.  Other policys are set to accept.  iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A INPUT -p icmp -j ACCEPT iptables -A INPUT -s 127.0.0.1/32 -d 127.0.0.1/32 -i lo -j ACCEPT   Update 2  Here are the results of iptables-save for the nat:  *nat :PREROUTING ACCEPT [8:468] :INPUT ACCEPT [7:408] :OUTPUT ACCEPT [2:134] :POSTROUTING ACCEPT [0:0] [0:0] -A PREROUTING -p tcp -m tcp --dport 53306 -j   DNAT --to-destination 10.183.42.125:3306 [2:134] -A POSTROUTING -j MASQUERADE COMMIT
13367
I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be tweaked, if any, etc.).
44189
I'm trying to set up file transfer via FileZilla and it doesn't seem to matter what details I put in, I always get the following error:     Status: Connection attempt failed with "ECONNREFUSED - Connection   refused by server". Error: Could not connect to server   My Dad has tried on his computer (with FileZilla on Windows) and it connects and everything is fine.. When I try on mine with all the same details that he put in, it comes up with that error.  I read that a firewall might be blocking it so I double checked and my firewall through system preferences and it is off.  Anybody know why this might be???  Additional info:  Macbook Pro running OS X El Capitan version 10.11.6  FileZilla version 3.23.0.2
105210
I've tried googling and .  I'm connecting my Windows 7 SP1 machine to an Amazon EC2 Ubuntu cloud server, Ubuntu 10.04 LTS. What I have done is   Enabling Remote Desktop in Ubuntu (, ) Connect to my server using 1)  and 2)  &ndash; I don't use  since it contains viruses.   But all of those result in Connection failed. I'm giving up!  More Detail Ubuntu server to remote to: Ubuntu 10.04 LTS (codename lucid)  My Windows: Windows 7 SP1
57291
I'm trying to make my client forward all traffic through a VPS running OpenVPN. As you can see, it will allow pings to both domains and raw IP addresses, but it will not allow traffic like that made through curl and traceroute doesn't come up with anything. The traffic works correctly when not connected to the VPN.   All information is here:   Thank you.  Working configs thanks to solution below:  Server:  port &lt;integer&gt; proto udp dev tun ca ca.crt cert vpnserver.crt key vpnserver.key  # This file should be kept secret dh dh4096.pem tls-auth ta.key 0 server 10.8.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt push "redirect-gateway autolocal" push "dhcp-option DNS 8.8.8.8" push "dhcp-option DNS 8.8.4.4" keepalive 10 120 cipher AES-256-CBC comp-lzo user nobody group nogroup persist-key persist-tun status openvpn-status.log verb 3   Client:  client dev tun proto udp remote x.x.x.x &lt;port number&gt; resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert vpnclient.crt key vpnclient.key tls-auth ta.key 1 ns-cert-type server cipher AES-256-CBC comp-lzo verb 3
5108
Moving a tried-and-true vsftpd configuration onto a new server with Fedora 16, I ran into a problem.  All seems to go as it should, but user authentication fails.  I cannot find any entry in any log that indicates what happened.  Here is the full config file:  anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_file=/var/log/vsftpd.log xferlog_std_format=YES idle_session_timeout=0 data_connection_timeout=0 nopriv_user=ftpsecure connect_from_port_20=YES listen=YES chroot_local_user=YES chroot_list_enable=NO ls_recurse_enable=YES listen_ipv6=NO  pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES   FTP challenges me for a username and password, I provide them, Login Incorrect.  I have verified, this user is able to login from ssh.  Something is screwed up with pam_service.  Anonymous (if changed to allowed) seems to work well.  SELinux is disabled.  Ftpsecure appears to be configured fine... I am at a complete loss!  Here are the log files I examined with no success:  /var/log/messages /var/log/xferlog      #empty /var/log/vsftpd.log   #empty /var/log/secure   Found something in /var/log/audit/audit.log:  type=USER_AUTH msg=audit(1335632253.332:18486): user pid=19528 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication acct="kate" exe="/usr/sbin/vsftpd" hostname=ip68-5-219-23.oc.oc.cox.net addr=68.5.219.23 terminal=ftp res=failed'  Perhaps I should look at /var/log/wtf-is-wrong.help  :-)  Further info:  /etc/pam.d/vsftpd looks like this:  #%PAM-1.0 session    optional     pam_keyinit.so    force revoke auth       required     pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed auth       required     pam_shells.so auth       include      password-auth account    include      password-auth session    required     pam_loginuid.so session    include      password-auth
18425
I've set up proftpd to use ssl/tls. Trying to connect I get an 'Illegal PORT command'  Finding Host xxx.nl ... Connecting to xxx.xxx.xxx.xxx:21 Connected to xxx.xxx.xxx.xxx:21 in 0.018001 seconds, Waiting for Server  Response Initializing SSL Session ... 220 FTP Server ready. AUTH TLS 234 AUTH TLS successful SSL session NOT set for reuse SSL Session Started. Host type (1): AUTO USER xxx 331 Password required for xxx PASS (hidden) 230 User xxx logged in SYST 215 UNIX Type: L8 Host type (2): Unix (Standard) PBSZ 0 200 PBSZ 0 successful PROT P 200 Protection set to Private PWD 257 "/" is the current directory CWD /var/www/html/ 250 CWD command successful PWD257 "/var/www/html/" is the current directory TYPE A 200 Type set to A PORT 192,168,192,14,211,181 500 Illegal PORT command Port failed 500 Illegal PORT command PASV 227 Entering Passive Mode (xxx,xxx,xxx,xxx,160,151). connecting data channel to xxx.xxx.xxx.xxx:160,151(41111) Failed to connect data channel to xxx.xxx.xxx.xxx:160,151(41111)   iptables:  Chain INPUT (policy ACCEPT) target     prot opt source               destination ACCEPT     icmp --  anywhere             anywhere            /* 000 accept all icmp */ ACCEPT     all  --  anywhere             anywhere            /* 001 accept all to lo interface */ REJECT     all  --  anywhere             loopback/8          /* 002 reject local traffic not on loopback interface */ reject-with icmp-port-unreachable ACCEPT     all  --  anywhere             anywhere            /* 003 accept all to eth1 interface */ ACCEPT     all  --  anywhere             anywhere            /* 004 accept related established rules */ state RELATED,ESTABLISHED ACCEPT     tcp  --  anywhere             anywhere            multiport ports ftp /* 021 allow ftp. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports ssh /* 022 allow ssh. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports smtp /* 025 allow smtp. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports pharos /* 051 allow rundeck. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports 8140 /* 814 allow puppetserver. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports http /* 080 allow http. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports https /* 443 allow https. */ DROP       all  --  anywhere             anywhere            /* 999 drop all */  Chain FORWARD (policy ACCEPT) target     prot opt source               destination  Chain OUTPUT (policy ACCEPT) target     prot opt source               destination   Connecting via normal ftp works just fine...  I'm using WS_FTP with ftp-authssl//xxx.nl/.... I tried several other connection options, ports, etc. But all give the same error. Althoiugh it seems that sometimes a first directory listing is shown (but that might be caching of WS_FTP)
50682
I'm trying to telnet into port 25 on a CentOS server that runs PostFix to test sending email messages from the server.  When I try to telnet in from another CentOS box on the same network I get the message below:   Unable to connect to remote host: Connection refused   SELinux is disabled and I've opened port 25 in iptables...what else should I be looking at?
11928
When I am online, I get following error and the tool does not start:  [root@dhcppc9 lin64]# ./ise No protocol specified _pn: cannot connect to X server :0.0   But everything is OK when I am not a superuser. Why that?  Edit  [root@dhcppc9 lin64]# export $(dbus-launch) No protocol specified   any suggestion?  Also   [root@dhcppc9 lin64]# xhost [+] No protocol specified xhost:  unable to open display ":0.0"
91351
I build amazon ec2 instance as following steps given on     Also followed this:    service httpd restart  says:  [root@ip-21-31-3-19 ec2-user]# service httpd restart Stopping httpd:                                            [  OK  ] Starting httpd:                                            [  OK  ]   there is index.php file in   /var/www/html/index.php  drive but it gives error:  The connection has timed out   What can be the issue?  UPDATE  My instance was created by my friend from US. I am in India. He sent me mail he received after creating the instance.  Availability zone -     us-west-2c Security groups -     launch-wizard-1. view rules Scheduled events     No scheduled events  AMI ID - amzn-ami-pv-2013.09.2.x86_64-ebs (ami-cc293fc) Subnet ID - subnet-4f727427 Platform - Network interfaces - eth0 Key pair name - AmazonLinux01   I think security group is already created. I am handling ec2 instance first time.   Is this ec2-classic or VPC?? There has been given VPC id and AMI ID both.   I followed this document to sent the security group -  which says : Required option '-O, --aws-access-key KEY' missing (-h for usage)  where to get access key?
55923
It's very annoying to have this limitation on my development box, when there won't ever be any users other than me.  I'm aware of , but none of them do exactly what I want:    (The version in Debian testing, 1.0, only supports IPv4)  (the "nat" table is not yet implemented for ip6tables, the IPv6 version of iptables) sudo (Running as root is what I'm trying to avoid) SELinux (or similar). (This is just my dev box, I don't want to introduce a lot of extra complexity.)   Is there some simple sysctl variable to allow non-root processes to bind to "privileged" ports (ports less than 1024) on Linux, or am I just out of luck?  EDIT: In some cases, you can  to do this.
91477
I tried:  rsync -v -v -e 'ssh -p YY' ./testfile me@XXXXX:/home   Error Message  opening connection using: ssh -p YY -l me 146.6.84.206 rsync -&gt;-server -vvve.s . /home  [sender] make_file(testfile,*,0) send_file_list done send_files starting server_recv(2) starting pid=17537 rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(600)[sender=3.0.6] _exit_cleanup(code=12, file=io.c, line=600): about to call exit(12)   This works fine:  ssh -p YY me@XXXXX   Which suggests to me the problem is neither that sshd is not running nor that port YY is firewalled. I have checked anyway.  What other problems could there be?  EDIT: The problem seems to have been "self resolving." I could not replicate the following day. I started my local computer up. Perhaps notably I had a different IP address than last time. And now rsync magically works. I'd appreciate guesses as to what it could have been in light of it going away.
9159
I want to install some VNC server on my ubuntu 12.04. which one is the best / recommended? how do i configure it?  all i want is to be able to connect my desktop computer through my laptop. i want something simple like connecting with RDP protocol between windows computers.
49639
I'm trying to connect two PCs for desktop sharing, I was able to set up ssh shell and file sharing but I failed to connect to VNC server.  There are additional packages that I need to install on my machines?  And how should I fill this dialog:
31187
I'm trying to ftp a folder using the command line ftp client, but so far I've only been able to use 'get' to get individual files.
6292
I'm trying to get postfix set-up on Ubuntu 13.04 but no luck so far. I found a few answers here on ServerFault that didn't work. I re-installed a bunch of times, nothing. This is my first time dealing with it, I followed this  and . I tried , nothing. This is what I get from telnet localhost 25 and ehlo localhost:  250-elclanrs.localdomain 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN   As you can see, no AUTH in there...  This is my main.cf:  smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no  append_dot_mydomain = no  readme_directory = no myorigin = /etc/mailname mydestination = $myhostname, localhost.$mydomain, localhost mynetworks = 127.0.0.0/8 192.168.1.0/24 [::1]/128 [fe80::]/64 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = all  relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_use_tls = yes   Then I've this in sasl_passwd:  [smtp.gmail.com]:587 elclanrs@gmail.com:mypass   I also configured php.ini:  sendmail_path = "/usr/sbin/sendmail -t -i"   Nothing is working, emails are not being sent from PHP. How to make it work?