CentOS 5 :: Unable To Connect Through Ssh Port 22?
Jun 3, 2010
My config :
Dell PowerEdge 2900III
16Gb RAM
2 arrays RAID1 (2*(2*500Gb))
CentOS5.5
VMWare 2.0.2 (with workaround of downgrade glibc to CentOS5.3)
Since the upgrade from CentOS5.4 to CentOS5.5, it seems the sshd is crashing every other day.I can access to the VMWare webserver, but no way to connect through ssh port 22.The only "workaround" is a hard reboot of the server, and with luck, I can access to the server through ssh.I checked /var/log/secure, it looks like time to time when the server start, it does not start the sshd service, there is no entry at all for the time the server started up. For instance today, the server has been started early this morning, but the first entry was found after a hard reboot this evening : Jun 3 18:19:14 hercules sshd[3617]: Server listening on 0.0.0.0 port 22.
I have 2 server behind the netgear router on my network . win2k3 and CentOS development server, I have port forarded 80 to win2k3 server which i can access over the internet and is accessable. However I can SSH CentOS machine and portforwarded 8080 and 82 for web access, I can't access via any of the port, browsers says UNABLE TO CONNECT.. there is no firewall in CentOS machine.
I'm trying to connect with my server via telnet, but when i sent the command (telnet xxx.xxx.xxx.xxx Port) doesn't works and shows then follow error: Unable to connect to remote host: Connection refused, It happens with any port. Is strange but my telnet services works (telnet xxx.xxx.xxx.xxx), In addition, i tried with firewall enabled and disabled and the problem still happens. My centOS run on virtualbox.
i am not able to port 8080 on my CentOS VPS server.I have followed all the instuctions as mentioned on iptables wiki page.Also I am able to telnet my ip address and port number, But can not access from browser.
I have setup an OpenVPN server on my server box, it had been working perfectly until today. It operates on port 1194 which I am now unable to connect to (tried telnet). I have checked all the firewall rules and they still allow the port and I have also checked to ensure that OpenVPN is still listening to the port, which it's not but I have tried restarting the service and the box which dosent make any difference. The only thing that has changed is that yesterday I installed Openfire, could this have broken something?
I have become convinced that rsync for CentOS 5 is broken. I'm trying to set up automatic backups between 2 servers in 2 different countries using rsync under CentOS 5.I can get manual backups to work between the 2 servers by doing two things I shouldn't need to do, but automatic backups fail and I see no solution.Here are the problems I am encountering: According to the instructions I've read everywhere, I am to set up two configuration files:
/etc/rsyncd.conf /etc/rsyncd.secrets
When I run rsync from root, it apparently just totally ignores these two files. No custom greeting, no log, no password used. Even when I specify --password-file=/etc/rsyncd.secrets in the command line, it still ignores it. I am prompted and I must enter the password manually. Let me back up a moment. After first installing rsync, when I ran any command to access the root server, I get this error:
ssh: connect to host 111.222.33.44 port 22: Connection refused rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(463) [sender=2.6.8]
I read everywhere that rsync uses port 873, not port 22 which is used for SSH. Why is rsync on CentOS trying to use port 22?I have SSH switched from port 22 to another port (let's call it 5432 here) and block port 22.So, I have added this to the command line:
--rsh='ssh -p5432'
Then I get a connection ...
... but it prompts me for my password. It doesn't matter that I have my username and password, same one, in /etc/rsyncd.secrets on both servers. It still asks.And it rejects my password!The only way I can get it to connect is by creating an SSH user on the remote server for this.Even then, rsync STILL prompts me for a password, even though:
1. the username and password are specified in the /etc/rsyncd.secrets files on both servers
2. I've added the command line parameter --password-file=/etc/rsyncd.secrets Therefore, it is totally impossible to use an any cron job or other automatic synchronization, under CentOS 5.
Yes, I have made sure that I have the latest rsync. I have run yum update for everything.Yes, I have double checked, triple checked, and quadruple checked my config files.
I'm trying to open up some ports to connect via vnc to a server running Centos 5.5. I've edited /etc/sysconfig/iptables everything *looks* fine, but I still can't seem to get access to the port I've opened (I added some newlines for clarity between commands):
I have two Centos 5 servers one running Asterisk with PHP installed and another sever running as a MySql Database server, at the moment when I try run simple script to see if I can connect to the remote server I get the following error.Quote:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I am running a VPS of CentOS. clock command doesn't work.[174-37-247-102.lx-vs.net ~]# clock hwclock is unable to get I/O port access: the iopl(3) call failed. How to solve the problem? I have tried "timeconfig" and set to New York and System Clock uses UTC and restart the server but it was not useful.
I installed NFS and portmap for export a folder to another PC. /usr/local. ftp is server's hostname and ws01 is client's hostname. I edited file /etc/exports with next text: /usr/local ws01(rw,root_squash) *(ro)
I restarted service portmap and nfs. From client, I try check connection with server with command: showmount -e ftp and result is: mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
i tried installing irssi a few months ago but got this error after messing around with some configurations.(was trying to get it to auto connect to a channel when i loaded it up) i have recently come back to it, deleted all the files and re-installed it but im getting the same error again and i haven't touched the config stuff this time.. should be a clean install.
I just installed swat, but I'm unable to connect. I read the "man swat" file and it says that I have to modify the /etc/inet.d/swat file, which in my install does not exist; however, I found the /etc/xinetd.d/swat file, and I edited setting disable=no, and also setting only_host=to my ip address. After that I restarted the server "service xinetd restart" because "service inetd restart" doesn't work, so I checked if the port was listening with netstat -l | grep 901. Again no service is listening on that port..
I have a server in my house with webmin and virtualmin installed et i made a mistake.Ive created a virual server and ive change the lan ip adresse. 192.168.2.30 ive change it for 192.168.2.31.Now of course nothing work. Im not able to connect via ssh via another computer.So, on the server i write ifconfig and it tell me the adresse is 127.0.0.1 and no more adresse like 192.168.x.x.
I'm not that great with mailservers, and just been thrown a curveball with a MS Exchange environment for which there is apparently no solution... yeah, right. But is there a workaround?
The problem is that the site mail (SMTP) needs to be sent via port 26 instead of the commonly used 25. Port 25 is mapped to a mailfilter, which apparently causes havoc with some of the mail, and the techs that have been on site trying to coax the Exchange server to co-operate have said that the only way would be to get rid of the filter.
The problem is that there are number of apps that are unable to have the outgoing port changed and so keep sending mail out on port 25.
I look after the Unix/Linux side of things at work, and I was wondering if there was an easy way to set up a Ubuntu box to receive mail on port 25 and just forward it to the MS box on port 26? So, in other words (and I hope this makes sense): monitor port 25, and forward whatever comes in on port 25 to the server on port 26. Simple portforwarding, or is it? What steps do I need to take?
I just moved into a new apartment and now connect via DHCP. Everything seems fine network-wise, except that when I'm at work I can't connect to the home box. (CentOS 5.3 x86_64) One thing I noticed is that I can't really determine my "true" IP address. What I mean is that it looks like my IP is 192.168.0.190, but when I use linuxdcpp, and enter a hub, I'm told my IP addr is actually something like 71.192.163.206. Here's some info:
I am completely new to centos 5 but I was unable to connect to internet and my ethnernet controller is RTL8101E ,can somebody tell where can i get and how to install
Due to PCI limitations on our server, we are trying to connect a Trandnet TDM=C400 ADSL modem via USB but are not having any luck, as the modem appears not to be recognised.
Right now I have a machine set up running Fedora. I have configured inittab to accept Console Logins, but I am having problems getting my netbook running PuTTY to connect. How would I go about finding the Host Name and Port to connect to?
I installed Centos 5.4 on my Pentium E5300 new comp, but I need IPX support in my work. It's simple - ipxutils and ncpfs from Fedora Core and new kernel with ipx support. I copied kernel config from /boot folder and activate ipx, ntfs support, and choose processor core 2 duo. New kernel (2.6.26) works OK, but I got one problem - when start it still shows message: "kernel: HUB 1.0:1.0 unable to enumerate USB device on port 1 (or 2, 3)" and stops after logging (text mode)
I got 2 USB devices connected - printer HP D5160 PhotoSmart and Scanner A3 USB Mustek, and I know scanner cause that messages but I don't understand why. Kernel config is the same like that from distro kernel (almost - ipx, ntfs and proc), but distro kernel doesn't do that. So I got 2 questions:
1. Why 2. What to do to stop that (disconnecting devices on boot time is not a solution)
Can anyone here point me to a walk-through or discussion of how to use Webmin to set up port forwarding/NAT on a dual-NIC Centos 5.3 box? The layout will be simple:
Internet --- NIC1 [CentOS Box] NIC2 --- Switch to other PCs
We have a BUNCH of exposed services that are on special ports -- for example, to connect to one machine, you go in with [IP_Address]:12000, and to connect to another, [IP_Address]:12002, etc., etc. We're currently using OpenSuse 10.3 on this box, and YaST makes this criminally easy (you give it the incoming port number and the destination IP/port numbers and it just works). But OpenSuse 10.3 is nearing EOL, we're buying a new machine, and I'd like to use CentOS on the new one.
I've read the sparse Webmin documentation in their Wiki, and it leads one to believe that you simply insert a "NAT" rule. But there's obviously something they're leaving out. I *am* opening the ports in the firewall. But when I log in to [IP_Address]:port, it just times out. The port forwarding never occurs. The test in this case is SSH, and I know that SSHD is working properly because I can log into that machine just fine from another PC on the same internal subnet.
I tried to install vsftpd on my server and while the installation went fine, I can't run
Code: restart vsftpd As I the get error Code:
restart: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Though I'm able to restart the service with
sudo /etc/init.d/vsftpd restart with a warning telling me to use the service utility. Not only that, but despite the port being open it won't allow me to log in, it just hangs, and I have local users enabled (I've used the default .conf file). Does dbus not come installed in 10.04, and if I did install it would it make a difference for restarting the service? Are there further steps needed not available in the tutorial on the Ubuntu Server Guide for 10.04 to enabling local user authentication? -edit- Figured it out, dbus wasn't installed, vsftpd is working fine now.
we are going to install ASTERISK remotely, hence the port 22 in the server has to be open ,Can somebody reply me with exact commands?I tried these commands and got these results
Command : cat /etc/services | grep xxx Result : No Such file or directory Command :netstat -nan | grep 22
I install and configure the vncserver following and reading 1000papers, but all of this present the same problem; when i try to connect to my vncserver,recive this mesage: unable connect to socket: No route to host (113) The OS version is Fedora Core 14 and tigervnc-server i try different solutions including:Allow TCP connection modifing files /etc/gdm/custom.conf and /usr/share/gdm/gdm.chemas Disable SELinux removing iptables Here follow the vncserver configuration:
[code].....
The ip address of the vncserver is correct because i can do ssh on it. Where or what can i do?
I'm trying to setup PS3 media server on my new OpenSuse 11.2 and I'm being unable to connect to the PS3. The multimedia server seems to being working ok, only it has not appear on XMB.
I've been searching on PS3 Media Server forums and try a couple of solutions regarding /etc/hosts and adding full qualified domain name of server to it, but it doesn't seems to work.