0
votes
3answers
74 views

PubKey Authentication not Working

I tried setting up PubKey authentication between my Mac and CentOS dedi server, but something is up... Here's the steps I took: ssh-keygen -t rsa Then chmod 700 .ssh/ && chmod 600 ...
0
votes
1answer
71 views

Only allow user SSH access to one directory

I have a server running Centos 6.4 and I need to allow a freelancer access to one folder on the server to upload some code and do some testing - I have set their home directory in /etc/passwd to: ...
0
votes
1answer
34 views

Deal with brute force ftp attack [duplicate]

While Checking the /var/log/secure on my centos server have found lot of attempts of failed login by using unknown usernames, from a list of ip from Japan And China How to hide my server from these ...
-2
votes
2answers
40 views

FTP and SFTP logs track in CentOS

How it is possible to track the changes made to a directory using tools like FileZilla or XFTP ? because we found some files suddenly got missed from server, in history also nothing was found so ...
-3
votes
3answers
69 views

SSH on linux | CentOS [closed]

I have a Linux server using CentOS. I have changed the SSH config to make it a little more secure, First I changed the from from default 21 (or 22?) to 34786. This way if someone tries to hack in at ...
1
vote
4answers
172 views

How to give developer shell access to use GIT and manage code, nothing else?

In CentOS 6.5 (SElinux off, chroot) with Webmin/Virtualmin (latest version) I want to give a developer access to SSH within /home/site so he can use only git to manage the code. I also want to give ...
0
votes
0answers
51 views

CentOS 6 VSFTPD via TLS/SSL not always connecting corectly

**I have a consistency problem with my VSFTPD server. I run CentOS 6 with the latest VSFTPD installed via yum. The problem is that I sometimes (say 50/50) get connection errors like... ERROR:> ...
3
votes
1answer
266 views

Cannot PuTTY to centos with ssh

New clean server CentOS 5.5 x64 I installed SSHD following the instructions here. http://www.cyberciti.biz/faq/centos-ssh/ When I try to login to the server with PuTTY however I get the output ...
0
votes
1answer
39 views

chattr: undefined symbol: set_com_err_gettext

I've moved my CentOS 6.5 installation to a new server and I'm unable to use chattr on my new server: chattr: symbol lookup error: chattr: undefined symbol: set_com_err_gettext How to resolve this ? ...
1
vote
0answers
87 views

Investigate strange message from syslog@stock

I've noticed that when I'm logged into my server I sometimes get spammed a message from syslog@stock. On this server I am running a website built with Laravel and a Teamspeak 3 server running with ...
5
votes
4answers
675 views

Should I install x86_64 or i386 RPM packages? [closed]

I am wanting to install an RPM package, but I'm not sure whether to install the x86_64 or i386 version. WHM says CENTOS 6.5 i686 virtuozzo at the top. How can I determine which version to install?
0
votes
1answer
49 views

Secure Public SSH Login w/ Limited Access

The title may make my question seem absurd, but, hear me out. The Overview: I am creating a project whereby I'd like my users to be able to connect to the server they are using to audit its ...
1
vote
1answer
348 views

Trouble changing SSH port

I'm running a CENTOS web server with WHM and CSF firewall. I'm trying to change SSH from the default port. I've opened up the port in CSF and modified /etc/ssh/sshd_config uncommenting the port line ...
2
votes
1answer
146 views

ssh shared key authentication asks for password, unless sshd runs with -d option

My client is Ubuntu, and the server is CentOS. I have shared key authentication set up to login from client to server. When I run the server like: sudo `which sshd` -d Everything works as ...
1
vote
1answer
141 views

ssh won't start >>/dev/null 2>>/dev/null

I am running a CentOS 6 server and I have issues with SSH. My SSH service won't start anymore. I do only have access to some tools using Direct Admin. At first I couldn't connect to SSH it gave me ...
0
votes
1answer
60 views

Changed file and now I cannot access my SSH anymore

I was trying to get my dedicated server to have a couple of VPS's installed using this tutorial: http://linux-vserver.org/Installation_on_CentOS In the process I had to change a file: ...
2
votes
1answer
73 views

SSH Mounted Drive, home directory for websites changed

A week or so ago I had a new hard drive added onto my dedicated server for additional storage because I am placing a video site up on the server and will be storing a lot of videos. So I wanted to ...
1
vote
3answers
88 views

Why would TCP wrappers stop working for sshd?

On a couple of CentOS 5 servers sshd seems to have become 'unwrapped' - previously I was using TCP wrappers and hosts.allow/hosts.deny to control access, but these are now not being used. If I execute ...
1
vote
2answers
79 views

CentOS ssh connection stalls after server bandwidth upgrade

I have a few linux servers inside a customer that recently MASSIVELY increased his bandwidth - from about 0.8/5mbps to 25mpbs/100mbps... (yes 100mpbs!) this is very good, but ever since my ...
2
votes
2answers
269 views

SSH authentication between my VPS and Bitbucket fail

I'm trying to setup SSH authentication between my VPS and Bitbucket for configure later automatic deployment via Capistrano (for web projects) and Capifony (for Symfony2 projects) so I follow this ...
0
votes
1answer
2k views

SSH problems - server unexpectedly closed network connection

Since yesterday I have problems connecting to my server using SSH/SFTP. I can only connect after a restart of my server. When I try to make a connection after a couple of minutes, I can no longer make ...
0
votes
0answers
1k views

“Network error: connection refused” when trying to SSH to guest VM

CentOS 6.5 host, CentOS 6.5 guest. Using kvm. VM gets a local IP from the virbr0 interface. I've set up some port forwarding in iptables. port 80 forward works, but my SSH forward does not. ...
-1
votes
1answer
650 views

SSH “Server refused our key” for all users except root user [closed]

I followed this tutorial and key authentication worked great for root. but when I created user xxx and added different key in authorized_keys and tried to login using putty where error was shown " ...
1
vote
1answer
209 views

Why does my command stop when I exit SSH? [closed]

I am running the following command in a loop (without notable memory leaks) as a cPanel user: nohup php ~/www/app/console.php run clean 1> /dev/null 2> ~/www/logs/run_clean.log & But when ...
1
vote
1answer
52 views

CentOS VPS : how to enable PermitRootLogin

While logged-in in to "root" via ssh I disabled PermitRootLogin setting in /etc/ssh/sshd_config file. It was advised to do so in the Cpanel's security adviser. Now I want to re-enable it for short ...
0
votes
1answer
691 views

Enable Jailshell Access from Command Line

There is an option in whm/cpanel to enable jailshell access for any hosting account. I want to know if it is possible to enable that option for any or all cpanel hosting accounts through command ...
0
votes
0answers
163 views

Run pam_exec after home directory creation CentOS 6

How can I make a pam_exec script in /etc/pam.d/sshd run after the home directory has been created? I am on CentOS 6.5 and use network accounts via PBIS / Likewise-Open. Right now, if a new user ...
-1
votes
1answer
70 views

How to add Public IP to Cent OS [closed]

I am trying to configure a Public(Static) IP in Cent OS 6.4. For this, I made a copy of eth0(added local IP, so that I can connect the system to Internet) and named it to eth0:0(added Public IP, so ...
0
votes
1answer
110 views

SSH painfully slow on my local network?

I have a CentOS 6-x64 Server running through VirtualBox on Windows Server 2012R2, but whenever I SSH into it, it's painfully slow. This happens for both Putty on Windows, and SSH on OS X. I've read ...
2
votes
3answers
191 views

Disabled root login for SSH in Centos 5.9, key login no longer working

I have a Centos 5.9 server which I have previously configured to access via SSH key login and this has been working fine for many months. I recently had to have an issue resolved remotely which ...
0
votes
1answer
142 views

SSH to local without password

We have some scripts that need to rsync without entering a password. I am trying to SSH to a local machine (itself). I cannot get it to work. It is always asking me for a password. It works fine ...
0
votes
1answer
105 views

Cent OS webserver unreachable (SSH or HTTP and Ping timeout) after YUM update

I have recently tried to update my Cent OS web server with YUM update which was interrupted. This caused some issues and took there server offline. See the following question for details of this: ...
0
votes
1answer
107 views

SSH Password Failure

I'm having trouble logging into my server via a password, even when I explicitly set the user's password via usermod. I've set PasswordAuthentication yes in my sshd_config and restarted the ssh ...
1
vote
0answers
193 views

Linux TACACS+ auth for SSH but allow users to use public key auth

we have running tacacs environment for centralised login to our routers, firewalls etc and even most of our linux boxes to ssh what we would like to do is allow users to authenticate to SSH via ...
-2
votes
1answer
79 views

How to show the actual username instead of nobody in Linux?

I'm trying to find the memory usage for each account on my VPS. I use the "top" command to achieve that but the problem is that it is not showing the actual username for each account. I have four ...
3
votes
1answer
2k views

OpenSSH on Centos 6.5 [closed]

I have a new (first time) CentOS 6.5 server being used for a web server. Our security team has identified the following weakness: The SSH server is configured to allow either MD5 or 96-bit MAC ...
0
votes
1answer
52 views

error while trying to empty a directory

I try to empty a folder (/var/lib/php/session/) with putty on ssh, but I does not work. I do not know what goes wrong. This is the command I use: rm -rf /var/lib/php/session/* Every time I run ...
0
votes
1answer
125 views

ssh warning message missing file issue

When I log into ssh (centos 6.5 64bit) Can't locate warnings.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl ...
0
votes
1answer
751 views

Centos set default ftp directory for a user

I am setting up accounts for people to connect to the server through ssh and SFTP. When I test the login, it goes straight to the "/" directory, and I do not want that to happen. I want to make it so ...
1
vote
1answer
259 views

Chroot issue, broken pipe

I need to give access to a developer to our server vía ssh. I hosted his web on /home/miuser and some other web applications in /home/... I have this config in my Subsystem sftp internal-sftp Match ...
0
votes
1answer
198 views

Log files too large and can not login to plesk

I am on a vps platform at Media Temple. Yesterday when i tried to log in via pleask, the message below appeared .... ERROR: Zend_Db_Statement_Exception: SQLSTATE[HY000]: General error: 1030 Got error ...
0
votes
1answer
433 views

CentOS 6.4 - Can't push git using public / private keys

Problem: Can't push using Git from Windows to Linux. Also can't connect to git user over ssh. Update #1: I changed "PasswordAuthentication" to no and tested. Key did not work, but password did. ...
2
votes
2answers
1k views

Setup public key authorized SSH for non-root users

I was able to setup ssh login using public keys for root users and tried to apply the same logic for non-root users. I have tried to troubleshoot this issue in vain. I am using centos for both my ...
0
votes
2answers
75 views

Apache2 starting, then port fails to bind

I have centOS 6.4 64bit and apache2 (httpd) installed. I do: /etc/init.d/httpd start And Apache starts up fine with just a green [Ok] However; when I try to load any webpages hosted on ...
0
votes
1answer
1k views

Connection closed by remote host followed by Connection refused

All of a sudden my ssh connection to server has been damaged. Here is what's happened: $ ssh -vvv -p <PORT> -l <USER> <HOST> OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar ...
0
votes
2answers
245 views

why rsync is not working with crontab?

when I run the following manually it runs perfectly: /usr/bin/rsync -arvth -e "ssh -i /watch/scripts/word.pem" 1.1.1.1:/opt/ /opt when it runs using crontab. I get: Permission denied ...
0
votes
0answers
77 views

Cron Jobs unable to deliver email error report

I am sure I have right syntax and I am still unable to receive report emails to my email address. My OS is CentOS 6.4. My Crontab script is MAILTO="cron@mydomain.com" * * * * * /usr/bin/php5 ...
1
vote
1answer
79 views

Listen multiple ports for SSH and restrict users from live IP

I have a live IP forwarding port 52000 on my RHEL 6.2 server. My server listens to 22 and 52000 for traffic. The setup is working fine. Users from internet are able to login into the system. But I ...
0
votes
2answers
506 views

Filezilla or PuTTY: I have “Access granted” followed by “Server unexpectedly closed network connection”. How to troubleshoot?

Here is an extract of Filezilla debug traces : Offered public key from "(...)" Offer of public key accepted, trying to authenticate using it. Access granted Server unexpectedly closed network ...
2
votes
3answers
246 views

Cannot jail SSH users to any folder other than their home folder

I need some help on this. I'm attempting to jail SSH users into their own folders so that they can SFTP into a server without seeing the filesystem I have following a simple guide online and managed ...