CentOS 5 Networking :: How To Set Ssh Timeout
May 27, 2009I have centos 5.3 server and the problem is the ssh timeout time set to 10 minutes of inactivity. I want to set the timeout to 1 hour, how can I set the timeout time?
View 1 RepliesI have centos 5.3 server and the problem is the ssh timeout time set to 10 minutes of inactivity. I want to set the timeout to 1 hour, how can I set the timeout time?
View 1 RepliesI am having a problem with 5.4 that I did not have with 4.5. The problem happens only sometimes but in specific instances. Basically a summary of the problem is that certain network transactions timeout. The specific instances are with wget, rpm, http. The problem usually, but not always, occurs with pptp stuff. (NOT running pptp but getting pptp stuff). For instance, the following command, which finishes in seconds on non-5.4 OS's:
wget [URL]
downloads about 20% then gets stuck. About 5 minutes later it downloads another 20% and then gets stuck, etc. The same thing with rpm:
rpm -ivh [URL]
waits about 3 minutes and then gives an error. I think it does the same thing as the wget but
wget will keep trying, while rpm gives up. The error from rpm:
Retrieving [URL]
..five minutes later:
I can wget the above as I mentioned before and install it that way. Before I do it, yum works fine. Afterwards, yum exhibits the same behavior of timing out (because it is using the pptp repository). Also visiting the pptp web site from Firefox times out on certain pages. I originally thought it was some problem with the pptp site, but I notice that log into hotmail.com. Does the same thin (fine on other operating systems). A view with Wireshark on the wget (pptp) shows the my machine receiving a reassembled TCPPDU from 216.34.181.96 (Sourceforge), sending an ack, receiving a reassembled PDU, sending an ack, receiving, sending followed by the 5 minutes or whatever of nothing. Then sourceforge sends an RST and a SYN and the process is repeated.
When I put the machine directly on an AT&T IP connection (12.147.X.Y) everything worked fine. Same with Comcast on a direct link. The times I am having problems is when our router is hooked up to a Comcast IP (70.88.X.Y) and assigns 192.168.5.X addresses to our machines. So when I was doing the above from 192.168.5.27 going through the router through Comcast is when I had the problem. So it is probably something with the router, but it is hard to figure out since CentOS 4.5 and Fedora do not exhibit this behavior, nor does 5.4 on most sites (mail.yahoo.com for instance). I did verify, at least from what I could, that ICMP type 3 and 4 are not being blocked. If they were, the same problem would happen on other op systems. And I was able to ping, albeit just locally, but we looked at the router settings and ping was not blocked.
pulled up an old clunker and put centos 5.4 on it the other day. well the grub spash screen appears but i have to manually hit enter to select a kernel.at the /boot/grub/grub.conf file and timeout=5. this is a new install. so I tried changing that value to 0 and it does boot the kernel immediately but never displays the splash screen. so something is not right I assume. btw I see a message (loading stage 2) for about 20 seconds as the computer boots and I have never seen that message on my ubuntu machine, so I wonder if something is off there.
View 4 Replies View RelatedI set the default os to boot as windows 7 with a timeout of 1 second. I thought that this would be enough time to switch os ubuntu when i need to, but I am unable to. How can i reset the timeout to 3 seconds? I also cannot view the ubuntu partition within windows because of ubuntu's file system.
View 9 Replies View RelatedThe normal distros now ship with an executable called "timeout". Will CentOS be including this new "timeout" command in an upcoming release?
I read that CentOS did not include it (yet) because of a name conflict with another package.
The problems I was having earlier: [URL]seemed to be solved.
I was not getting any error messages after restart. I should have powered down fully, but did not think that it would make a difference. :(
The same issue is again occurring, but after shutdown ONLY and only on the first boot. After the first boot, a system restart will not cause any error messages. (I have rebooted at least ten or twenty times to make sure)
But after a system shutdown, the first boot hangs up and I get the
"Red Hat nash version 5.1.19.6 starting hdb: timeout waiting for DMA hdb: drive not ready for command"
errors five or six times before each boot. Also the system boots very slowly the first time.
I used the getinfo.sh all command and posted the info to the suggested site here: [URL]
Is it possible this could be a hardware issue? This is an old salvaged HDD. Ive changed everything I c an think of in the BIOS with no results.
I have used the hdparm -d /dev/hdb command and verified that dma is not being used on initial boot or after a shutoff but IS being used after a reboot...
here are the HDD settings
/dev/hdb:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
[Code]....
One person using our DNS servers reported a very curios problem. When he tries to access [url] he gets a timeout error. I tried loading the site using chrome, firefox and ie8 and I get the same results.
Here is what dig gives me:
If I use google DNS I get the correct response:
I am a complete novice when it comes to Linux, but want to learn, and installed CentOS5 on an old P4 Dell I had lying around.
Dell Dimension 8100 BIOS is version A02
Install seemed to go fine, but when I power up I get the following message
Red Hat nash version 5.1.19.6 starting
hdb: timeout waiting for DMA
hdb: drive not ready for command
this happens a few times each, then CentOS finally loads.
If Im understanding this right, DMA is direct memory access.
Is it possible the hard drive, motherboard etc does not support this?
i was able to connect the first time following the instructions here: [URL]
1. first time i was able to connect i used the nx client for Mac OS X. I logged off.
2. then i decided to test this using Windows nx client and i got:
NX> 203 NXSSH running with pid: 604
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
[Code]...
I have Centos 5.1 and im a total newbie. I have managed to get it running with Apache and PHP but after I install mysql it fails to start with the above error. I have removed it as well using YUM and reinstalled it but it still will not start.
View 4 Replies View RelatedI'm trying to get the options for rotate timeout to work and it does not.Timeout always seems to defaults to 1 sec no mater what value I set it to, which is fine but still the option does not work.I'm setting these according to the manpage for resolv.conf, please Let me know if I'm missing somethingHere is my resolv.conf file
domain spd.net
options timeout:1
options rotate
[code]....
I was having a problem on my squid server whereby 1 website would timeout daily and return a nscd not found error: [url]....There may be other sites but this is the only one I know of. A selection of other sites still work correctly, which is the strange thing.I have found that by restarting the dns cache everything works again: /etc/init.d/nscd restart.I never know quite when this will timeout so it is not very good for people accessing that site on the server.
View 3 Replies View RelatedI have a VPS running on centos-5-x86 and mysql server went down two days ago this is my mysql server log
110602 18:28:09 mysqld started
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
110602 18:28:14 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
[Code]...
I'm trying to get granular with TCP, one of the answers I can't seem to find is. When a client server connection is lost without closing, how many duplicate ack's are sent until the session is closed. I've kind of figured out the the sender will continue to retransmit a segment for about 9 mins if not Ack'd. going from 1.5,3,6,12,24,48 and the continuing with 64 seconds up to around 9 minutes before is resets the session. but whats happening at the other end.?
View 1 Replies View RelatedI have a named server that has forwarders setup. Quite often the dns server where I forward would not respond right away and the query would fail. It would then also cache the empty result for 3 hours and I would need to restart the service or clear the cache. how would I be able to specify a value for forwarders timeout, just like on Windows DNS.
BIND 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3
I was trying to rsync datas from one server to a remote server. There is a firewall between the two servers and the 22 port is open for the servers.
Attached the error that I got.
My spouse bought me a Seagate BlackArmor NAS 110 recently, and I finally had time to connect it to our home network. I have samba installed, and my linux box (opensuse 11.1) can see the NAS, but when I try to open the network connection I get a "timeout on server" message. I bumped up the network connections, but still no luck. The odd thing is that last night I was able to connect and see the public folders for awhile. And her Windows Vista computer seems to connect without a problem after using the seagate software.
I'm no network admin, and have exhausted my resources on this.
I installed linux 2010 mandriva on a (embeded) system,and i run several server programs on it that accept connections from clients. clients are connected to server(s) and every things is ok, but when i go to home and back to my work tomorrow, i see no data can be sent to server programs and this problem exists until i restart the server programs or reconnect tcp client programs. this problem occurs even when both client and server programs executed on the same (embeded) system.why this happens? i checked by netstat and see that server ports exists in the list(and not closed by kernel) but it seems kernel or an application above it prohibit data transmission.i changed the OS and installed ubuntu but the problem exists.
View 5 Replies View RelatedI am trying to set up an ssh server on my Debian squeeze box so that I can access it remotely when I'm not at home. I connect to the internet through an at&t 2wire modem/router. First off, I *can* ssh into the machine from inside the local network, e.g.
[Code]...
Nmap done: 1 IP address (1 host up) scanned in 2.12 seconds Playing around with Nmap, I also found that it only sees port 50001 as open.
Something is wrong with the networking on this Ubuntu system. It has been assigned the LAN ip address 10.1.10.10 From another Ubuntu desktop, I can: ssh myself@10.1.10.10 ( from 10.1.10.143 ) and I can login without any problems. I can ping 10.1.10.10 ( from 10.1.10.143 )
[code]...
My local area network is always time out for few seconds.I have check my memory with "free -m"There are still left 200+ mb left.I am hosting my own ubuntu server, and I share the same internet line with my server and pc. when I access to LAN, I need to type 192.168.2.2, at outside I can access to [URL]It is only the LAN access timeout, but when I access at outside, I didn't face this problem at all.
View 1 Replies View RelatedI am experiencing horrible name resolution problems in Maverick. I believe this problem is related to having the following line in nsswitch.conf:hosts: files wins dnsI do use Samba and access windows shares in my network (that's why wins precedes dns. I was wondering if there is any way to setup a wins lookup timeout so it can fail quickly enough to try to perform the lookup using dns.
View 7 Replies View RelatedI am facing issues on few machines but rest all are ok. They have the same config but I don't know what is wrong. I tried as much as I could but couldn't fix it. Here is the rpms installed on this client
[code]...
The same config is working for all clients but have problems with few machines. May be I am doing something wrong in config or testing at very basic level.
I have a user using Mac OSX and ssh-ing to a couple of Redhat servers, one running RHEL5 and the other RHEL6. The user's connection seems to be timing out after 60 minutes or so of inactivity. The user is on the same subnet as the servers. Both servers have the same sshd_config files with the following entries with regards to timeout:
TCPKeepAlive yes
ClientAliveInterval 30
ClientAliveCountMax 99999
In a nutshell, his office Mac keeps getting dropped off both machines. Other machines, including the Mac he logs in with from home doesn't get timed out and keep the connection open. The log files are unremarkable and the switch port shows no errors
I am using select to read the data from socket. on a load of 25 req per second, for some req i am getting the timeout in select (returning zero), but i am able to see the data on TCP using wireshark. kindly suggest what could be the possible reasons.
View 5 Replies View RelatedI'm using Kubuntu 9.10, my pppd version is 2.4.5 and pptp is 1.7.2 I'm trying to connect to the iPredator VPN service, but I keep running into problems with LCP. I've tried using knetworkmanager, nm-applet, kvpnc and plain old text-based configuration to no avail. Here's a snippet of pppd's output:
[Code].....
(I've got "defaultroute" in my /etc/ppp/peers/ipred config file.) Any ideas what could be causing this? Could it even be my router? It claims to support PPTP, but considering it claims a lot of other things which aren't true, I wouldn't be surprised if it was the culprit.
I am using Witopia VPN services and used to work just fine on my Ubuntu 10.04. All of the sudden it stopped working. Here is the log:
Code:
May 17 00:56:58 saeed-laptop NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.openvpn'...
May 17 00:56:58 saeed-laptop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 11477
May 17 00:56:58 saeed-laptop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' just appeared, activating connections
May 17 00:56:58 saeed-laptop NetworkManager: <info> VPN plugin state changed: 1
May 17 00:56:58 saeed-laptop NetworkManager: <info> VPN plugin state changed: 3
May 17 00:56:58 saeed-laptop NetworkManager: <info> VPN connection 'VPN Connection' (Connect) reply received.
May 17 00:56:58 saeed-laptop nm-openvpn[11482]: OpenVPN 2.1.0 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Jan 26 2010
May 17 00:56:58 saeed-laptop nm-openvpn[11482]: WARNING: No server certificate verification method has been enabled. See [URL] for more info.
May 17 00:56:58 saeed-laptop nm-openvpn[11482]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
May 17 00:56:58 saeed-laptop nm-openvpn[11482]: WARNING: file '/home/saeed/Documents/config/VPN_Connection.key' is group or others accessible
May 17 00:56:58 saeed-laptop nm-openvpn[11482]: /usr/bin/openssl-vulnkey -q -b 1024 -m <modulus omitted>
May 17 00:56:58 saeed-laptop nm-openvpn[11482]: LZO compression initialized
May 17 00:56:59 saeed-laptop nm-openvpn[11482]: RESOLVE: NOTE: (address omitted) resolves to 12 addresses, choosing one by random
May 17 00:56:59 saeed-laptop nm-openvpn[11482]: UDPv4 link local: [undef]
May 17 00:56:59 saeed-laptop nm-openvpn[11482]: UDPv4 link remote: [AF_INET]IP address omitted
May 17 00:57:39 saeed-laptop NetworkManager: <info> VPN connection 'VPN Connection' (IP Config Get) timeout exceeded.
May 17 00:57:39 saeed-laptop nm-openvpn[11482]: SIGTERM[hard,] received, process exiting
May 17 00:57:39 saeed-laptop NetworkManager: <info> Policy set 'Auto Belkin' (wlan0) as default for routing and DNS.
May 17 00:57:51 saeed-laptop NetworkManager: <debug> [1274043471.002409] ensure_killed(): waiting for vpn service pid 11477 to exit
May 17 00:57:51 saeed-laptop NetworkManager: <debug> [1274043471.002596] ensure_killed(): vpn service pid 11477 cleaned up
I removed IP addresses. I think its a recent update might have created this issue. I tried re-installing openvpn and network-manager-openvpn.
I'm trying to configure internet access using KDE network manager. Added new VPN connection, set gateway and other options but connection breaks. Here is /var/log/daemon.log
Code:
Jul 1 17:35:22 dvinokurov-desktop NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Jul 1 17:35:22 dvinokurov-desktop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 1761
Jul 1 17:35:22 dvinokurov-desktop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections .....
log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Jul 1 17:36:02 dvinokurov-desktop pptp[1773]: nm-pptp-service-1761 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
As I understand the main problem is in "(IP Config Get) timeout exceeded".
I have got pptpd linux server and pptp linux client which connects successfully. Now I want setup idle time (inactive) in pptp linux client so that if the pptp tunnel is inactive say for example 5 minutes it will be automatically disconnected. how can do that, is there any built in feature on pptp client?
View 1 Replies View RelatedIm running several linux boxes, all redat enterprise linux. Versions vary between 4 and 5.
Since we have problems with our DNS servers, Im trying to lower the DNS resolve timeout to the minimum to avoid system hangs etc.
However, it seems that nothing I do have any effect. when Im running time nslookup whatever.com or time host whatever.com while my first DNS server is down, it always takes about 1.09sec as opposed to 0.09sec when the first server in the list is available. I tried playing with options timeout:X attemps:X but it simply doesnt seem to do anything, even if I set it to high values. Some internet posts suggested having timeout:0.5 or less, but that also doesnt seem to do anything.
when I use:
options timeout:0.3 attempts:1
- doesn't do anything.
options timeout:1 attempts:1
- doesn't do anything.
options timeout:10 attempts:3
- doesn't do anything.
It doesn't work when I put it in the first line of the file. It doesn't work when I put it in the last line of the file.
It doesn't work if I put it in "export RES_OPTIONS=options timeout:X attempts:Y"
I tried it on 2 different machines.