General :: Periodically "losing" Ability To Connect To Server Via SSH?
Mar 18, 2010
I know this isn't exactly a programming question, but it popped up in my use of git for programming projects at least. I've got a web server that I use to host my git repos on, but my ubuntu box seems to "lose" the ability to connect to it via SSH. I'll get a "connection refused" error when I try to ssh or use git. Rebooting my local machine will fix the problem, but only temporarily. I can still connect to the web interface just fine, and the problem manifests with other servers as well.
I've been working around it by pulling my changes over to my laptop and pushing from there, but that's sub-optimal as you can imagine. Has anyone seen something like this? I'd be tempted to say it's some kind of IP caching problem, but I can't connect even using the IP address of the server directly.
i am trying to send malformed string into ability ftp server in order to have some unexpected crashes. i login in into the ability ftp server on my window 7.On my virtual machine,i am working on a backtrack 4, i tried to send some string to have some unexpected crashes, but i couldn't success.here is the code:
Some time yesterday, I lost the ability to ssh my remote server, or even visit any webpages it hosts.
I've explored hosts.deny, /var/log/secure and even turned iptables off to see if it would fix anything. To no avail. Here's what my ssh login attempt looks like:
I have an Ubuntu Server 10.04.1 that I have given a static IP address. Every six hours or so I will lose connectivity to it and when I type ifconfig to look at the network information, it has been given an address via dhcp. If I run the /etc/init.d/networking restart command the IP address goes back to my static address and things are fine for another 6 hours or so. Here is what is in my interfaces file:
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.60.82.15 netmask 255.255.0.0 broadcast 10.60.255.255 gateway 10.60.254.254
This machine is also a DHCP server and I checked to make sure there are no other DHCP servers on my network. Right now my fix is to have a Cron job running that runs the reset command every 5 hours, but I would like to find a more permanent solution.
I installed Mepis to a separate partion (shares swap) and now the option to use, originally installed, Ubuntu does not appear at start up. Is there a way get this option back?
I'm relatively new to Linux.My netbook ran updates yesterday for Ubuntu and now I am unable to reconnect to wireless network connection.I am using WPA2 encrypted security.I am able to connect via wired LAN. Also, when I went to connect using USB mobile connection, I get an error "unable to mount location". I get the same error if I try to connect my external CD drive. I have tried to force mount but no luck.
I've initialize a virtual disk and deleted the partition table didn't notice that i've done that to the wrong one, data still on the physical hard disks but....how I'll get my data back safe without losing it?
I'm setting up a computer with xUbuntu installed and wan't to run it as a PPtP VPN server.
I'm using a mobile broadband for internet connection, with DynDNS wich updates the host with public IP-address.
I've managed to set up the connections and installed the needed packages. The problem appears when I connect to the VPN server through another computer;
When I get connected to the VPN server the remote computer recieves an IP-address from the server (xUbuntu) wich is great! But the server changes prefered network, from the mobile broadband to the wired network wich results in the remote computer losing it's connection to the server.
I am implementing an automated backup scheme so I created a shell script which first creates SQL dumps for all MySQL databases, then retrieves all websites from the /var/www directory of a remote server. The latter is working as I am using rsync to get the remote files.However, the MySQL dumps being retrieved are the ones from the local server which is not what I want. I want to get the SQL dumps from the remote server as well.I have a tunnel between the local and remote server which I can connect to without using any password (I added the public key to the authorized_hosts), so I tried to add the following code to the script:
ssh user@192.168.x.xxx
I then attempted to retrieve the SQL dumps and exited from the remote server. However this does not work as I still have to enter exit manually in the terminal for the SQL dumps to be retrieved from the remote host. I don't know why this is happening. This is what the script is trying to do:
//connect to remote server ssh user@192.168.x.xxx //retrieve SQL dumps
[code]...
Is there a way to connect to the remote host AND run the script's code on THAT remote host?
I am currently running Ubuntu Studio (a variant of Ubuntu 10.10), dual-booted with Windows 7. For convenience's sake, I have three partitions - one for 7, one for Ubuntu, and a third shared partition, for all of my non-OS-specific media, documents and programs. I am using RhythmBox Media Player, and have it pointed at a folder on the shared partition as a music library.
However, every time I boot, I have to re-mount the shared partition, which requires re-entering my login password. In a similar vein, when I'm installing programs in terminal (doing 'sudo apt-get install [x]'), I have to re-enter my password each time I do a sudo command. Is there any way to keep super-user permissions until I choose to drop them myself? Better yet, can I make it so that logging in as the admin account automatically instates super-user privileges?
I want to upgrade my ubuntu 10.04 to 10.10 or 11.04 but I afraid of doing that because last time that I did it upgraded successfully but after restarting, it went to blank screen and I forced to install a new UBUNTU. unfortunately there was no other previous version of UBUNTU in boot option.My question is how can I update or upgrade my UBUNTU to another one with keeping all of last versions data(kernel,modules,drivers,....)that if new version does not recognize some thing I have other choice to boot my system from ubuntu boot menu.
i have suse linux enterprise desktop on my laptop with these partitions :
Device Boot Start End Blocks Id System /dev/sda1 * 1 2612 20980858 83 Linux /dev/sda2 2613 3592 7871848 82 Linux swap / Solaris /dev/sda3 3593 3971 3044317+ 83 Linux /dev/sda4 3972 60801 456486972+ 83 Linux
now i want to delete all partitions except root partition (sda1) and make it's size bigger then create other partitions again.
I created an account called adminftp on a local Linux server Centos.Added this user to FTP group.When I use Filzilla from another computer in the same network, it cannot connect to the server but I can ping to the server.
(Ubuntu Linux server, 64-bits)I was troubleshooting a problem with a file (~3.0 GB) which I had just downloaded, but it was failing the integrity test, when I discovered something really unusual.First this is the MD5 of the file after download, which didn't match the expected value:
This was really unexpected. Since I have a lot of RAM, I suspected this was the effect of caching and something was going awry with it. I decided to retry with the whole file from disk, for my surprise:
~% sudo sysctl -w vm.drop_caches=3 # This linux command invalidates vm.drop_caches = 3 # everything in the memory cache. ~% md5sum media.iso 2992aa6270f6e1de9154730ed3beedc1 media.iso
I redid it and now it seems to stay consistent, although this still isn't the value I was expecting. Certainly, the contents in memory cache were different from the contents on disk.This is the big problem.To fix the download, I created a torrent on the source machine and opened it in the target machine. Five 1MB chunks out of ~3.0GB failed integrity check. I used the torrent to fix these file chunks and how the file integrity is ok.The problem now is to determine where the data got out-of-sync.
I tested the memory with memtest86+, all but the bit fading test. I was expecting to see some failing memory module, but there wasn't anything. Everything is ok.Filesystem is Ext4, over LVM2, over a 3-disk RAID5 array.Ext4 is considered stable, and if data were inconsistent between disks, mdadm would have warned. But there is nothing in the logs. S.M.A.R.T. error logs are clean, the disks are new (have less than 30 days of "power-on-hours").I'm looking for information about any data-loss bugs in my current kernel (2.6.35), but there doesn't seem to be anything, as far as I looked.what else I could check, or where exactly could be the defect/bug?It is a Ubuntu 10.10 64-bit, Core i7 930, 6 GB non-ECC RAM.
Update: I confirmed that the files are being correctly written to the disk, the pages are being altered after they are read from disk, while in memory. I did a lot more memtests (I left it doing bit fade test overnight),and still nothing. All memory modules seem ok.Some more tests:
~% md5sum media.iso cc8bcf1ce67ff7704eadc2222650c087 media.iso ~% cp media.iso tmp[code]....(direcat is a version of cat that reads with O_DIRECT, that is, bypassing page cache)There is a clear pattern: it always happens to the 2nd byte in a 16-byte alignment. In that byte, almost always the bit 4 (LSB) flips to one, but there was one instance where bit 2 flipped to zero.
I have a vp6 codec flv. I have a wav file that I want to convert into mp3 and added to the vp6 flv. So when I play the flv the audio is added and the video quality is not changed.I tried:ffmpeg -i 20.flv -i 20.wav -vcodec copy -acodec libmp3lame new_file.flvbut I an error "Could not write header for output file #0 (incorrect codec parameters ?)". I'm guessing because it is a vp6 flv codec.Is there a way to just add an audio file to the flv? There is no audio in the current flv. I cannot lose any quality in the video.
Every time my workstation reboots I have to manually redo my resolv.conf file because some of the servers I manage use apparently different nameservers than what my system is registering at boot. Is there a way to make sure my resolv.conf file says static?
Can any data be lost on ext4 with full journalling mode when electricity crashes? I know it's possible on filesystems like JFS and XFS because they don't journal data (only metadata). When ext4 in "journal" mode journalles both - data and metadata. Does it give 100% guarantee that no data can ever be lost in case of problems with electricity?
I would like to setup a compose key, but the only options available in the KDE system settings (and via /usr/share/X11/xkb/rules) are code...
None of those please me though; "compose:caps" might be ok, but it's mapped to ctrl already.
Is there an option so setup some key (e.g. some of those extra function keys), or to get the key itself somehow? (e.g. ralt would be OK, if I could easily get the original behavior of the key (AltGr))
I would love to have something like Shift-AltGr to trigger Compose mode.
I guess I could add an extra rule, like it's done for/with compose:102.. what does 102 refer to? (it's not something dumped via xev).
There is also an option lv3:ralt_switch_multikey (Right Alt, Shift+Right Alt key is Multi_Key), but this did not work as expected (see http://bugs.kde.org/246472).
I have Ubuntu 10.10 installed. I am very new to Linux. I am having a problem connecting to wireless network when I reboot to Vista OS. When I am using Ubuntu, it works fine. I have to plug in the LAN cable in order to connect to internet. When I try to connect to wireless network, I don't see any networks at all. My WiFi switch is ON. I keep switching back and forth between Vista OS and Linux.Narendra
Since 10.10 is not out yet, I think I'm going to try Mint. (or possibly Lubuntu - I have both ISOs copied to CD already)
Question is: Is it possible to install the new OS on the partition that now contains Ubuntu, without disturbing my Windows Vista partition? (I just need Vista for occasional use of MagicJack- otherwise I'd gladly just wipe the whole disk)
Can I just boot my Ubuntu live CD and run Disk Utility and delete the Ubuntu partition? (I prefer to use GUI rather than CLI).
I have Ubuntu 10.04 and play a game on Myspace called Green Spot. Does anyone know how to enable the ability to "send gifts" on the members pages. It seems to be blocked, or, occasionally, I am allowed to send only one particular "gift". Is this adblock related? If so, how do I eliminate adblock, or unlock it?A friend of mine put Linux on this particular computer and I do not know how to navigate most of it.
I have a Linux box being used as a firewall with Fedora 10 and shorewall 4.2.10. Secondary IPs are loaded on the WAN (eth1)card through Shorewall NAT and Rules file. The problem is that if there is a network hickup or if the circuit bounces, the primary IP comes back but I have to reload Shorewall to get the secondary ips back. Is there a way so that they can automatically reload or just not go away if the connection bounces?
I have Apache, MySql server, and phpMyAdmin installed on my desktop. With the default installation of phpMyAdmin, I should be able to log in as root without a password. (Or at least every other time I have installed it, I could.) However, that isn't the case. I can't log in to phpMyAdmin period. I have tried setting the password for root with MySql through the terminal. Still no results. No matter what I do, when I try to log in to phpMyAdmin, I am denied access.
this is a fairly common issue (though I have never encountered it before) as I found similar posts in numerous forums, etc. I finally found a solution and now have it working. In case others have a similar problem, I am posting the solution that I used here. First open a terminal. Then use the following command
Code: mysqladmin -u root password NEWPASSWORD Substitute NEWPASSWORD with the password that you want to use and then you should be able to log in to phpMyAdmin as root with the new password.
I have to run this page: [URL].., because it fetches the content of some feeds(RSS) and then inserts into Database and then sends SMS texts to subscribed users. when i run it with php-cli in bash like this: php feeds.php?u=y&d=y
I only get: [4] 11719
but nothing happens, running it like this: black@loopserver:/var/www/loop/cp$ php 'feeds.php?u=y&d=y' Could not open input file: feeds.php?u=y&d=y
Can any one please tell me what to do? I think the problem is coming by passing get parameters, if i just run feeds.php everything goes fine, but I need to pass in those.
I want to use a script to renew my IP every 5 minutes. I have a static IP and it seems that when another person enter the same IP address as mine, my IP is stolen and is assigned to him.
I know that Cron is responsible for running a script at some time interval. How can I use that to renew my IP?
I have Windows 7 working on my laptop. I have 20GB space unpartitioned. I want to install a flavor of Linux like Fedora or Ubuntu in that space, but I have heard that keeping a dual OS configuration sometimes results in losing data stored on the hard disk. I've also heard that it may sometimes cause unrecoverable problem because when Linux is loaded on hard disk it will take over the boot loader from Windows.
Is this correct? Moreover, I have 6 partitions in Windows, but if I use a Live CD for Ubuntu or Fedora to boot, then it is not showing some partitions -- sometimes it shows only 4 or 5 partitions. What might be the problem, and how to resolve it without formatting the whole hard disk and repartitioning it?
Just ran into an uncomfortable problem. I usually never save any documents on my machine, and keep all my stuff on an external USB hard disk. (an 80GB TrekStor DS microdisk q.u) Well yesterday this disk just would not mount. Read through related posts but nothing seemed to work. Even tried it on a Windows machine.
Tried TestDisk utility. Found nothing wrong with the drive, but still could not repair the MBR.log code...
Palimpsest Utility recognized the drive, but just will not let me do anything with it except format it.
How can i repair the partitions and MBR without losing all my data?