I can ssh to my Fedora 12 without any problem, but every time I sftp to it, it says "Connection closed" and then just kick me out. Is there any configuration I missed here?
I found the issue is that in .bashrc I have following line: bind '"C-a": "cd .. "' As soon as I comment it out, sftp start working. But I cannot explain it.
I have configured rssh 2.3 with openssh 5.8 on RHEL 5.6 64 bit to restrict the users to scp and sftp. When i try to sftp or scp it gives error connection closed. After long googling tried different solutions like add missing libraries, setuid to rssh_helper. I had full copy of /lib to /chroot/lib and /chroot/lib64 but no success. conf and log files are below for reference.
setting up an SFTP server on debian, all the way down through step 3, though I did not "Match Group" I did Match User as I only need 1 user to have access to the SFTP server(did not continue on to step 4 and beyond as they did not apply to me) Im getting the error:
connection closed by server with exitcode 141
I get this when trying to log in via filezilla. I actually only got the 141 error on the first attempt, any attempts after that just says "could not connect to server". Username and password authentication goes through, so it is not a login info issue.Im running Debian squeeze, and that guide was for Lenny, that shouldnt matter, I dont think.
I have installed Fedora 13 and updated it. I simply cant use ssh to connect to this Fedora, not even locally. I have enabled port22 in firewall settings and nothing. Tried to disable firewall completely and nothing. I have disabled SELinux (not sure if it has something to do with this, but... ) and nothing. Entered "ALL: ALL" in /etc/hosts.allow and still nothing. Dont know what to do anymore.
Here is what happens when I try to ssh to this machine, even from it: [flibio@surf ~]$ ssh localhost warning: Need basic cursor movement capability, using vt100 flibio's password: Authentication successful. Disconnected; connection lost (Connection closed.). Connection to localhost closed. [flibio@surf ~]$
Looking into Services > sshd and it says "This service is dead." So I tried: [root@surf etc]# service sshd restart Stopping sshd: [FAILED] Starting sshd: : OpenSSH_5.4p1 on : FATAL: Creating listener failed: port 22 probably already in use! .....
And still I get disconnected whenever I try to ssh to this machine from anywhere. Services says that sshd is allways dead, even restarting it but I can only restart it by doing a pkill sshd before.
I have recently installed fedora 14 and configured vpn to access my work network. I need to access some windows machines which although I can ping I cannot remote desktop into. When I go to Applications>Internet> Remote Desktop Viewer and put in the machine name (either just the machine name or the FQDN including the domain name) I get an error "Connection to <machinename> was closed".
I have FileZilla installed on this machine, and OpenSSH (with an open port 22) on another machine on my home network. When I try and connect, I get: Quote: Status:Connecting to 192.168.2.3... Response:fzSftp started Command: open "alphatwo@192.168.2.3" 22 Error:Connection refused Error:Could not connect to server
Which has left me puzzled as I have an open port. Does the username have to be defined somewhere? E.g. the machine acting as my SFTP server can be logged on to locally as alphatwo so that's what I logged in as (with the correct password). Is this correct? If so, does anyone have any ideas as to how I might rectify it? I want SFTP set up so I can copy PHP files from my laptop to /var/www/html/ on another PC (across the home network).
I performed a F13 to F14 upgrade today and it went very well. The only problem I'm having is that I can longer Telnet to the machine.The client side returns a "connection closed by foreign host" message or "connection to host lost", depending on the client.The /var/log/messages file contains "FATAL: bad tty" following every telnet attempt.I receive the same error even when trying to telnet to localhost on the local machine.
I am facing problem while connection to host (Red Hat Enterprise Linux ES release 4 (Nahant Update 5)) via putty.
when ever i try to connect host machine via putty/ssh, connection is established succussfully but just after few minutes it disconnectes . same is the problem if i connect using VNC. I did't made any configuration changes in recent past, earlier every thing was fine.
I'm a frequent user of the shared connection feature of SSH. Usually i have two or three connections open at the same time through the connection sharing feature, but sometimes when i try to start another i get the message "Shared connection to <server< closed". All the connection that are established through the connection sharing feature are still active and not closed, but when i try to create a new one i get that message.. i've even got that message when i have only had two connections through the shared connection feature.
I've tried to search google but it doesnt seem like anyone else has had the same kind of problem, does someone know why i sometimes get this error ?
As the title implies, I'm having an issue with svn, whenever I try to make an svn action, I get: svn: Network connection closed unexpectedly
I've done some Google-fu on this, and the obvious culprits don't seem to be at work. Specifically, the svn server does not use a nonstandard port, and I'm not using Tortoise SVN or putty, just going directly from the command line. Additionally, I was able to use the server as recently as this morning and no coworkers are having problems.
I have a weird problem with ssh, I am trying to ssh to a solaris server (sparc) running solaris 10 from my Ubuntu box and as soon as it authenticates the password it closes the connection. The box is located on a internal network in a wiring closet with no ability for me to access console but i still have a working ssh session from 2 days ago with what i'm trying to comb through settings and trying to resolve the issue. It also has 2 NIC's and I cannot connect to the either ruling out hardware problem. I checked if there is a limit of the number of active connections and the was no limit. I was able to connect mitiple session till 2 days ago (at one point i had on my machine 8 active ssh sessions to the same server).
Here is the output of ssh -vvv: Code: $ ssh -vvv -l user1 10.100.xxxxx OpenSSH_5.5p1 Debian-4ubuntu4, OpenSSL 0.9.8o 01 Jun 2010 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 ..... debug3: channel 0: close_fds r -1 w -1 e 6 Connection to 10.100.50.4 closed. Transferred: sent 1768, received 1688 bytes, in 0.1 seconds Bytes per second: sent 12077.9, received 11531.4 debug1: Exit status 254
My IBM Thinkpad T42 laptop fan is constantly running when the laptop is open.I only use AC power.Fan turns off when laptop is closed, which I did by selecting Suspend in Power Management.
cpufreqd and cpufrequtils are installed. cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor' is 'ondemand'
Constant fan was not a problem in XP Pro; I just installed Debian one month ago.
In my case, it occurs intermittently when trying to connect using putty's command line client 'plink.exe' to a linux machine using ssh. For some testing purposes, a linux server is setup with 8K virtual ip addresses and the testing scripts will connect to these ip addresses through ssh using plink.exe. There will be concurrently 25 ssh sessions launched to the server. While it works for sometimes, it throws 'server unexpectedly closed network connection' error intermittently. If the same ip address is tried again manually, it works. While the ssh server is accepting connections, this error is thrown sometimes and unable to find out the reason from the logs. It is not that the ssh connection is completely blocked. It gives this error message while connecting to some of the virtual ip addresses but works some times.
The hosts.deny, sshd_config are tuned to allow the connections, allow more sessions etc.
I am having trouble connecting to one of the VM's through ssh from base machine all of a sudden. All I get is an error : ssh_exchange_identification: Connection closed by remote host
Saying that the problem is only with ssh would be wrong as I can't seem to telnet or ftp it either. But I can ping it fine.When I try to login to that VM through console, it won't even let me login. The screen would flash for a sec and the same login prompt would reappear. I am not sure what exactly happened as it was working fine before.
I have configured the sftp in ubuntu 9.10, I could able to connect through the port 22, but not connected to users home folder. where do I need to configure so that users can connect / restrict to only their folder
i try to connect to a specific ip address with ssh i have installed the ssh server and client. i also try it by connecting with localhost without any problem. But i keep taking this message if to try to connect to the ip address. i checked my hosts.allow and hosts.deny files and all are commented in there (i think tha this should not be the problem).
I'm forwarding an application (HandBrakegui) over an ssh tunnel using X11 forwarding as follows
ssh -C -p PORTNUM user@host -X ghb
This all works fine and X11 loads and handbrake's X11 output to my local mac.The server is Ubuntu 10.4 and the client is Mac OS X.Is it possible for the X11 HandBrake Gui session to be kept alive once the SSH tunnel or the X11 window on the client (mac) has been closed? As I'm adding files to HandBrakes queue I want the programme to finish encoding them even if I turn off the client computer as the server is always on.
Several of our servers that do not have direct exposure to the Internet have the following entry appearing in their respective /var/log/secure files.Are these messages harmless? If so, is there any way or reason to suppress their appearing in the log files?
Firstly I am new to red5 and not very strong when it comes to linux. I have had installed red5 on my dedicated server and going by the http://myIP:5080/installer demos it is all working fine. My problem is I cannot get it to work with my software being flashchat. I am not sure if it comes from me using the incorrect RTMP url and if so after trying about 20 or more ways of typing it in I always get the same error message "Connection Failed' or "Connection Closed" not to sure what is meant by Closed as to whether it's working but can't get in or what ever. I am after someone who can get this to work for me please and I am willing to pay for that service once it is working.
I'm trying to establish a connection between two laptops using sftp but am getting the following error message:
Connecting to <IP>... ssh: connect to host <IP> port 22: Connection refused Couldn't read packet: Connection reset by peer
ftp isn't working either. Both machines are running Ubuntu and connect to the internet through the same wifi router in case that's relevant. What could be the problem?
I'm using Filezilla to connect to a remote server with site 2 site VPN. Even when i'm sending a small file with SFTP, the connection time outs and reconnects. Its happening again and again. Even SCP connection is also the same. BUT SSH CONNECTION IS WORKING FINE.
Filezilla log
ravindika@ravindika:~$ tail -f filezilla.log 2010-07-07 10:35:12 2690 2 Response: fzSftp started 2010-07-07 10:35:12 2690 2 Command: open "root@XXX.XXX.XXX.XXX" 22 2010-07-07 10:35:19 2690 2 Command: Trust new Hostkey: Once 2010-07-07 10:35:21 2690 2 Command: Pass: ******* 2010-07-07 10:35:25 2690 2 Status: Connected to XXX.XXX.XXX.XXX
Is it possible to limit each user so that only one can connect via each username for ssh/sftp? I work with a small company where there aren't really enough of us to justify using a revision control system, but we don't want to accidentally step on each other's toes, so we'd like to try simply preventing more than one person from accessing a given domain at once.
I've run into my first Linux/Unix roadblock and need support. I am creating a user strictly for SFTP and need them to login to a specific folder as well as set their navigate, write, and read permissions appropriatly but am having trouble. I was able to modify /etc/passwd to change their home location upon login but was warned that it was a bit dangerous to modify this file, even though my login test worked, and that I should look for an alternate solution in case shadow passwords were used. I'm reading up on chmod and understand the binary relationship but still can't seem to put the pieces together for each folder I'm working in. Below is what I need to satisfy: username for this test will be 'customer'
Example folder: /storage/company/files
1. User 'customer' needs to login to /storage/company/ by default.
2. User 'customer' needs browse, write, and read permissions to /storage/company/ and ALL files and subdirectories within this folder
3. User 'customer' must be UNABLE to navigate backwards toward folder root / or in general, navigate out of their primary home location.
I have changed my web server from FTP to SFTP for security reasons. I am used to Nautilus randomly crashing, but usually I got to connect fine via FTP. Now I could connect exactly once with SFTP, but ever since I only get the useful message:Oops! Something went wrong. Unhandled error message: SSH program unexpectedly exited
I am trying to use autoexpect and can't seem to get it working. I installed expect and expect-dev and have the autoexpect example files but when I try the % autoexpect command from the terminal all I get is;"bash: fg: %: no such job" - what do I need to do so I can get this to work? I am trying to create a script for an automated SFTP connection. I created a bash script that works okay but it gets stuck at the password prompt and I heard that autoexpect would be the best way around that