General :: Netcat File Transfer - "Connection Refused"
Apr 21, 2010
I have two custom scripts I just wrote to facilitate transferring files between my VPS and my home server. They are both written in bash (short & sweet): To send:
[Code]....
The problem is that, for a very quick second, I see something flash along the lines of "Connection Refused" (before pv overwrites it), and no file is ever transferred. The port is forwarded through my router, and nmap confirms it:
I have configured openssh 5.8p2 with centos 5.6. My sftp is working fine with chroot environment but i am having problem with SCP. I am dealing with muliti Redhat servers. When i try to transfer data from other linux server through scp it gives connection refused. For e.g ssh 5.8 is configured on new server and i want to transfer files from old server which is using openssh 4.3 version.i created same username and password on new server as on old server.My sftp users on new server has no shell access but only sftp access. When i try to scp from old server to new server it gives error connection refused. Is the below configuration only for sftp and can't scp? According to google the configurations i found are for scp and sftp. Do i need to generate ssh keys by giving users on new server shell access, once created then stop shell access again, as i dont want to give shell access permanent for security reasons? but i want to use ssh keys for more security as well.
Port 22 PermitRootLogin no 1.override default of no subsystems[code].....
i am trying to transfer a file from my live linux machine to remote linux machine it is a mail server and single .tar.gz file include all data. but during transfer it stop working. how can i work and trouble shooot the matter. is there any better way then this to transfer huge 14 gb file over network,vpn,wan transfer. the speed is 1mbps,rest of the file it copy it.
[root@sa1 logs_os_backup]# less remote.log Wed Mar 10 09:12:01 AST 2010 building file list ... done bkup_1.tar.gz deflate on token returned 0 (87164 bytes left) rsync error: error in rsync protocol data stream (code 12) at token.c(274) building file list ... done code....
I'm using something like this to send file from one computer to another:To serve file (on computer A):
cat something.zip | nc -l -p 1234 To receive file (on computer B): netcat server.ip.here. 1234 > something.zip can I do the opposite? Let's say I have file on computer B and I want to send it to A but not the way I wrote above, but by making computer that's supposed to receive file (A) be 'listening' server and connect computer that's 'sending' file (B) to server and send the file? Is it possible? I think it might be but I'm not sure how to do this.
In case my above explanation is messed up: How do I send file TO 'server' instead of serving the file on server and then taking it FROM it (like I did above)?
Having a bit of a issue with Debian Squeeze and transferring files to the Sony PSP..Hook up PSP to USB port and Debian mounts it..I go to drag a 125 meg mp4 to video folder..Copy windows takes about 10 seconds to transfer it..Exit USB mode and there is no video there. Go back into USB mode and look at video folder on the PSP memory stick and there is no video..It vanished. From another after copy progress closed I right clicked PSP and unmounted it..
It error-ed saying device was busy and could not unmount..Looking at light on PSP i see memory stick is still being written to..i wait for light to stop flashing..About a minute or so..Then am able to unmount it..Go to PSP video and theres the video ready to be watched. Debian isnt accurately showing the copy progress...Its showing complete when it isnt..I have to watch the light on PSP to know when it is truly finished.
Does this mean that all of my network interfaces are listening as opposed to just one specific network interface? Would 0.0.0.0 include 127.0.0.1?
Also, this computer(A) is on a LAN at my house. It has two network interfaces(eth0 & eth1), both on different subnets. I can connect from another computer(B) on my LAN to this one on one interface(eth0) via SSH just fine. The other interface(eth1) on this computer is hooked up to it's own gateway to the internet using DSL. I'm using this interface(eth1) for running bind.
Anyhow, here's my issue. When using a computer(C), which is a hosted VM , from outside my LAN, to connect to computer(A) via SSH, I get connection refused. So I checked my hosts.deny & hosts.allow files, both empty. I run nmap from computer C and SSH comes up as closed. So I'm thinking it's a firewall issue.
Here's what my iptables -L looks like:
Code:
I've been meaning to learn more about iptables, but which chain is for which network interface? I have also tried running nmap from computer(C) to test bind out on tcp 53 that comes up closed. I run udp 53 and that comes up as closed but then again udp is funny because it's stateless. If I run netcat on udp port 53 from computer C I get a blank line as if it's still running. However, I get that for all other ports anyways so that's of no use.
Unless my AT&T DSL is blocking those ports. But if that were the case would the error 'Connection refused' come up when I try to connect via SSH?
I now have a .tar.gz that has been created during my script, and finnaly i need to upload it via ftp to my computer, but i am unable to because i keep getting the "Connection refused" error, despite the fact that all the syntax appears to be right. in a bout of frustration, i have deleted the code and now no longer have what i had written.. so could someone please let me know the syntax to upload a file to a server? I am aware that other threads have been started about this issue but I am trying to ftp from an iPhone to a computer...
I wanted to download a public repository, from sourceforge.net.I have tried using socat and configure my proxy but with no success, I have given the detailed specification for configuration of the ssh below,
host cfdem user git hostname cfdem.sourceforge.net
Is the following sendmail scenario possible? If yes, what modification(s) should be made, in order to work?
system1 with host1 - where the sendmail is executed system2 with host2 - where the destination email address is stored
When trying to sendmail from host1 to an email address stored on host2. but with the format username@host1, the sendmail service returns Connection refused by host1.
I have CENTOS 5.4 Installed in one machine and i used Real IP provided by our ISP.My requirements for Mailserver are:
Dovecot Postfix
everythings done but when i tried to telnet my External IP it giving me an error of telnet connection refused but i can able to ssh to my external IP and also i disabled the firewall but still no luck.
I work with RHEL, and have instaled DHCP server on it. Sometimes it is happen this bad behaviour:
May 19 10:52:34 alpha dhcpd: DHCPDISCOVER from 00:1f:3c:91:9b:ba (LENOVO-C3236B87) via 10.192.31.0 May 19 10:52:35 alpha dhcpd: DHCPOFFER on 10.192.31.230 to 00:1f:3c:91:9b:ba (LENOVO-C3236B87) via 10.192.31.0
I reinstalled unbuntu server recently and i am trying to get it to only allow one computer to accsess it. So after doing this etc/ssh/ sudo nano sshd_config I uncomment #ListenAddress 0.0.0.0 Ok so i am trying to accsess my server from a windows machine so i tpyed ipconfig /all to find my ip I found the IPV4 address and i put that address like so ListenAddress 192.168.1.22 But when i try and connect it says connection refused.
I'm setting up a htpc system (Zotac IONITX-F based) based upon a minimal install of ubuntu 9.10, with no GUI other than xbmc. It's connected to my router (d-link dir-615) over a wifi connection configured for static IP (ath9k driver), with the following /etc/network/interfaces:
Code:
auto lo iface lo inet loopback # The primary network interface #auto eth0
[code]....
Network is fine, samba share to the media direction works, until I try to upload a large file to it from my desktop system. Then it downloads a couple of percents at a really nice speed, but then it stalls and the box becomes unpingable (Destination Host Unreachable), even after canceling the transfer, requiring a restart of the network.
Same thing when I scp the file from my desktop system to the htpc, same thing when I ssh into the htpc, and scp the file from there. Occasionally (rarely) the file does pass through, but most of the time the problem repeats itself. Transfer of small text files causes no problems, and the same goes for the fanart downloads done by xbmc. I tried the solution proposed in this thread, and set mtu to 800 in the interfaces file, but the problem persists.
I've used fetchmail for quite a while now and never had a problem, until (without having changed anything) today it suddenly quit working, giving me the error message:
fetchmail: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused. fetchmail: SMTP connect to localhost failed fetchmail: SMTP transaction error while fetching from stefan%mydomain.com@mail.mydomain.com and delivering to SMTP host localhost fetchmail: Query status=10 (SMTP)
I googled the error message, but didn't find anything that look promising. I use ubuntu 10.4.
My system is Ubuntu 11Before I typed "telnet localhost" or "telnet localhost 23". I have make this work below:$sudo apt-get install xinetd$vim /etc/xinetd.conf
I'm starting to like making bash scripts. It's kewl making creative ones. Right now I'm trying to make a bash script that will open up port 23 for a netcat connection. Once there's a connection, I'd like for the script to open up xmms and play a sound effect, as well as echo a txt file to the desktop saying that a connection was made at this specific time. When I execute the script, it stops exection at the first line. So far I have this:
I tried to finally set-up surround sound on my Ubuntu 10.04 machine and i was successful in doing so after a while of changing settings and tinkering. After doing so though, i was later in the day not able to get into the Pulseaudio Volume Control, therefore, everything is stuck where it is and i can't change anything. When i try to open Pulseaudio Volume Control i get the error message, Connection failed, Connection refused. My programs still play sound and i can control the sound of the programs through the programs, but i cant control the sound of the sorround sound now and my main sound bar only affects my stereo speakers, not the surround ones.
I believe this may have happened after the random disk check on restart, but i can't 100% confirm that and i'm not even sure if they are related. I still have sound, but i have no way to control the volume of my entire system at once. I did some looking around online and saw that others are having or had the same issue, and it was through different versions of Linux also. somehow reset everything so i can access PAVC and start over . I also tried steps listed in another thread here on the same topic, but they weren't working and it also seemed to be for older Ubuntu versions.
I'm trying to create a PAN (Personal Area Network) using a laptop (Siragon ML-1040) and my desktop computer, but I get the Connection Refused (111) error.
Blueman doesn't detect any network service between the two computers unless I start PAND on one of them and then it detects the NAP service. That, only after I enable the NAP/Workgroup services on the Services submenu in Blueman. However, it doesn't work neither with the NM plugins or without them (dhclient and that other one I can't remember the name of).
Any clues over here? I'm using pand 4.91 and blueman.
vsftpd not working on my CentOS system. I tried logging in using FileZilla but the error message was: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
I'm just working on fedora for the first time for my proj. So having many difficulties. My first doubt is that is it possible to record audio in single user mode using fedora? I need it for my proj work..I tried arecord and rec in single user mode.. I'm getting an error stating pulse audio connect error. Connection refused..
I am trying to monitorize an OpenWRT (Backfire 10.03, r23115) router from an Ubuntu server, but I am having some problems. I have installed Nrpe (2.12) on the remote host (OpenWRT), I have executed the program as a deamon (/usr/sbin/nrpe -d) but when I start the NRPE deamon, I don't get anything about NRPE executing netstat -at or ps -ef.I would need to install check_nrpe on OpenWRT to find out if NRPE is working, but I can't find any ipk package with it. Now, once in the monitoring host when I try to reach the remote host from the server:
I am trying to backup a client called greetings.com, but when I do an amcheck on the server, I get: WARNING: greetings.com: selfcheck request failed: Connection refused
I have two computers: one is connected with router by wi-fi and another is connected with router by lan. How I can optimal organize connection between two computers with Ubuntu 10.04 for transfer files? What Do I do? Can I share some folders,
I'm using Scientific Linux on a laptop, connecting to a debian server on my LAN via a basic BT HomeHub router. When starting a file transfer with ftp or rsync from the laptop my connection is dropped, every time, after a couple of seconds. I have to reset my network adaptor and restart my network manager (wicd in this case) in order to get network connectivity back. I had a very similar problem before - [URL]. On this occasion my workaround was to replace NetworkManager with yast. I am now using SL though so no yast available, and I am not using NetworkManager any more anyway.
i typed the command "system-config-network",at the hostname field i gave "james@lee".after closing that window, again i typed the same command "system-config-network". but it gives the following error..
[student@james@lee ~]$ system-config-network Xlib: connection to ":0.0" refused by server Xlib: No protocol specified
ERROR: Unable to initialize graphical environment. Most likely cause of failure is that the tool was not run using a graphical environment. Please either start your graphical user interface or set your DISPLAY variable
i am running ncat (netcat's new version from nmap) on centos . I am listening on different ports. My question is , is it possible that when a connection is received on a port say 123, i redirect this connection to a different port and use the 123 port again for listening connections. ncat has an option -k which u can add with -l , it will force fully listen on the port. It can accept multiple connections on a single port but i want that once a client connects on to 123 port, he is forwarded to some other port and no longer on 123.