0
votes
0answers
63 views

SSH not working when called by automated script

SUMMARY: My script which includes ssh runs fine from the command line but the ssh part does not work when the script is called by an an automated daemon (apcupsd). DETAIL: I've got an ESXi server and ...
1
vote
1answer
179 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 ...
0
votes
2answers
70 views

rbash to limit user to its home directory closes sftp connection

Server: Red Hat Enterprise Linux Server release 6.5 (Santiago) Using openssh-server to allow sftp connexions. I'm trying to limit users to their own personal home directory. So i modified ...
0
votes
2answers
102 views

I can't log into my VPS. Email server up, SSH down, HTTP down

I can't log into my VPS. SSH gives the following error. All the web servers are down. They connect, but do not serve content. However, the email server is still working. The server responds to ping as ...
0
votes
1answer
117 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
66 views

Close putty connection from CentOS 6 shell script

as title says I have a centOS 6 machine which uses an dracut, initramfs preboot ssh. I want to create a shell script that at the end of it's execution it closes the console and ssh connection. How can ...
0
votes
1answer
75 views

VPS CentOS 6.3 x64 recovery mode changes are not saved after reboot

i am running a CentOS 6.3 x64 OS on a VPS server, the server was having issues logging in to SSH using root credentials, it showed a message similar to "No Shell Exists, Access Denied" root login via ...
0
votes
0answers
601 views

PuTTY “Server unexpectedly closed network connection” error before login - CentOS 6.3 VPS

I can't seem to login to my CentOS 6.3 Server VPS, neither PuTTY nor the SerFISH Web SSH service seem to work. It started after I tried to login using X11 forwarding in PuTTY. Now even with every ...
0
votes
1answer
92 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
2answers
95 views

mysql: unrecognized service … but mysql is installed and it's working

I'm trying to stop mysql and do some changes , then i'm going to start it again I'm using a SSH client . So i ran this 3 commends without any problem mysql mysql> SET GLOBAL ...
1
vote
1answer
257 views

Centos does not open port/s after the rule/s are appended

So after some battling and struggling with the firewall, i see that I may be doing something or the firewall isnt responding correctly there is has a port filter that is blocking certain ports. by ...
2
votes
1answer
256 views

Putty: Incoming Packet was garbled on decryption

I am unable to connect to my server on my local network (VM). I have multiple servers I am able to connect to. When I try to putty into the server, I get the message Incoming Packet was garbled on ...
2
votes
2answers
346 views

How can I find current ssh protocol version of current connection?

I connect to a linux machine (centos 6.4) ussing putty. Except from fact that I can set putty to only use one type of protocol, how can I find the current's ssh connection version (SSH1 or SSH2)?
0
votes
1answer
636 views

CentOS 6 restrict user ssh access to his home folder

I am trying to restrict a newly added user to his homedir /home/username. Don't want him to be able to cd out of it. I have this my sshd_config: Match User username ChrootDirectory %h ...
1
vote
1answer
413 views

jailing sftp users without messy folders [duplicate]

Running ispconfig3 on CentOS6. I'm setting up a new server that will host multiple websites for different clients and I want to use sftp as a more secure option to ftp. I have successfully set up an ...
1
vote
1answer
552 views

Disable root login for dropbear? [closed]

Linux noob here. How can I disable root login for dropbear? What I've done so far adding DROPBEAR_EXTRA_ARGS="-w -g" into /etc/default/dropbear (not working) adding DROPBEAR_EXTRA_ARGS="-w -g" into ...
2
votes
3answers
2k views

fail2ban iptables having port 22 and fails to block ssh on custom port

This question is almost same problem like mine but accepted answer doesn't solve my issues In Fail2Ban, How to Change the SSH port number? SSH on port 22 everything works great. After 5 attempts ...
0
votes
1answer
264 views

Unable to authentication after manual edit of /etc/passwd and /etc/shadow

On Scientific Linux 6.4 ( like CentOs6.4) When configuring a new server I have manually edited the file /etc/shadow so as to copy the password. Now I can only log in as user root and I can not use ...
1
vote
3answers
640 views

SSH does not use PublicKey on CentOS 6.3

I have a CentOS 6.3 server and with a user named ako. I am running Kubuntu 12.10 as my client and I have copied my public key to the server using the ssh-copy-id command. I have updated the ...
1
vote
6answers
1k views

ssh publickey doesn't work

UPDATE: I've solved this strange problem by simply restart sshd. However, I'm still wondering why, because I didn't change any configs since the server started. I have 2 servers, one installed CentOS ...
1
vote
2answers
1k views

CentoOS SSH Access

I'm executed this commands with root user i'm on a CentOS 6.3 server: #useradd newuser #passwd newuser #visudo then I added this line at end of file: AllowUsers newuser #service sshd restart ...
1
vote
1answer
165 views

OpenVZ VMs redirect to main node?

I have a new fresh CentOs 6 machine and have SoulsVM and OpenVz installed on it. When I create VPS it came online with no problem. When I try to SSH to the VPS it gave me "Access Denied." I reset ...
0
votes
1answer
318 views

Rsync delta copy not working for virtual disk

I have tried rsync for copying VMs to remote host but the deltacopy does not seem to work. I am using Virtualbox on CentOS 6.2. My VM has 1 snapshot so I just copy the snapshot file instead of the ...
2
votes
3answers
929 views

Create an image of a CentOS system

I provide a server (and site) to a client via Rackspace Cloud Hosting, and my client wants to now host the entire thing within his own account. Since it's not possible to just transfer the ...
5
votes
1answer
877 views

CentOS is ignoring my public key

I am trying to connect to my own CentOS server using SSH; I am able to connect fine with a password; I am trying to connect with my public key, but the server does not attempt public key ...
-1
votes
3answers
2k views

ssh: No route to host

I'm failing to set-up an ssd on port 9922. With standard configuration on port 22 everything works fine. Then I change the port to 9922 by adding this line to ths sshd_config file: Port 9922 I can ...
3
votes
2answers
90 views

New server won't accept SSH public key

I have a private network that had 3 servers before. Now that I added a fourth, I tried to set up public key authentication from the main entry point to this new server. However, the usual procedure ...
2
votes
3answers
2k views

Cannot connect to server via SSH

I'm running RHEL 6.0, and I accidentally moved the /bin, /boot, /cgroup, console.txt, /data, /dev, /etc to another folder. I think I managed to move these folders back, but now I'm having trouble ...
3
votes
2answers
6k views

SSH sessions terminate abruptly with message: Corrupted MAC on input. Disconnecting: Packet corrupt

We have a Dell PowerEdge 840 Server running CentOS 6.0 64 bit with 2GB ECC memory. When any user sshs in, after some time the session gets terminated with the output: Corrupted MAC on input. Packet ...