Posts tagged linux

Terminating a stuck or frozen ssh session


I thought that I’d enter a quick post tonight about quickly and easily terminating a stuck or frozen ssh terminal. Most people know these keystrokes, so this is geared towards those new to linux and ssh.

If your session is stuck, to terminate the ssh session, type these keystrokes separately:

"Enter" , "Tilde(~)" and "Period(.)"

These three simple keystrokes should then terminate your current ssh session.

To be more adventurous, if you keep ssh sessions open to systems outside your network, you can use autossh with screen. Will cover this in another post

Plesk, Centos and CDP Server Enterprise Edition


So recently doing some work for a client that has a Centos machine that runs Plesk. After having some trouble getting the correct kernel headers etc, I ended up contacting cdp (r1soft). Thankfully they had a repository setup.

In /etc/yum.repos.d/ create a new repo file with the contents:
name=R1Soft Repository Server

then yum update && yum install r1soft-cdp-enterprise-agent

you should see something along the lines of:

[root@p2 yum.repos.d]# yum update
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
r1soft | 951 B 00:00
r1soft/primary | 97 kB 00:00
r1soft 1034/1034
Skipping security plugin, no data
Setting up Update Process
No Packages marked for Update
[root@XX yum.repos.d]# yum install r1soft-cdp-enterprise-agent
Loaded plugins: rhnplugin, security
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package r1soft-cdp-enterprise-agent.x86_64 0:3.10.0-13679 set to be updated
–> Processing Dependency: r1soft-cdp-agent >= 3.10.0 for package: r1soft-cdp-enterprise-agent
–> Processing Dependency: r1soft-setup >= 3.10.0 for package: r1soft-cdp-enterprise-agent
–> Running transaction check
—> Package r1soft-cdp-agent.x86_64 0:3.10.0-13679 set to be updated
–> Processing Dependency: r1soft-cdp-async-agent-2-4 >= 3.10.0 for package: r1soft-cdp-agent
–> Processing Dependency: r1soft-cdp-async-agent-2-6 >= 3.10.0 for package: r1soft-cdp-agent
—> Package r1soft-setup.x86_64 0:3.10.0-13679 set to be updated
–> Running transaction check
—> Package r1soft-cdp-async-agent-2-4.x86_64 0:3.10.0-13679 set to be updated
—> Package r1soft-cdp-async-agent-2-6.x86_64 0:3.10.0-13679 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size
r1soft-cdp-enterprise-agent x86_64 3.10.0-13679 r1soft 2.9 k
Installing for dependencies:
r1soft-cdp-agent x86_64 3.10.0-13679 r1soft 4.9 M
r1soft-cdp-async-agent-2-4 x86_64 3.10.0-13679 r1soft 3.8 M
r1soft-cdp-async-agent-2-6 x86_64 3.10.0-13679 r1soft 3.2 M
r1soft-setup x86_64 3.10.0-13679 r1soft 933 k

Transaction Summary
Install 5 Package(s)
Upgrade 0 Package(s)

Total download size: 13 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): r1soft-cdp-enterprise-agent-3.10.0.x86_64.rpm | 2.9 kB 00:00
(2/5): r1soft-setup-3.10.0.x86_64.rpm | 933 kB 00:03
(3/5): r1soft-cdp-async-agent-2-6-3.10.0.x86_64.rpm | 3.2 MB 00:04
(4/5): r1soft-cdp-async-agent-2-4-3.10.0.x86_64.rpm | 3.8 MB 00:08
(5/5): r1soft-cdp-agent-3.10.0.x86_64.rpm | 4.9 MB 00:07
Total 547 kB/s | 13 MB 00:24
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : r1soft-setup 1/5
Installing : r1soft-cdp-async-agent-2-4 2/5
Installing : r1soft-cdp-async-agent-2-6 3/5
Installing : r1soft-cdp-agent 4/5
/etc/init.d/cdp-agent stop: cdp (no pid file) not running
Attempting to get a kernel module from ‘’

Module downloaded successfully.
/etc/init.d/cdp-agent start: cdp started
Installing : r1soft-cdp-enterprise-agent 5/5

r1soft-cdp-enterprise-agent.x86_64 0:3.10.0-13679

Dependency Installed:
r1soft-cdp-agent.x86_64 0:3.10.0-13679
r1soft-cdp-async-agent-2-4.x86_64 0:3.10.0-13679
r1soft-cdp-async-agent-2-6.x86_64 0:3.10.0-13679
r1soft-setup.x86_64 0:3.10.0-13679


There we go, no fiddling with their RPMs and source code and trying to install kernel header files.

Go to Top