Archive

Archive for the ‘SSH’ Category

MacOSX+SSH+SOCKS+Proxy

March 1st, 2014 Comments off

Here is how you connect your mac to an ssh server and establish Dynamic port forwarding allowing you to browse safely.

1. Open Terminal

2. st0ma:~ st0ma$ ssh -D 8080 st0ma@codero.soteks.org
Authenticate with your ssh user credentials.
3. In your browser of choice, setup the advanced network settings to use a socks proxy
on localhost (or IP 127.0.0.1) and port 8080 as we issued in the Dynamic forwarding in point 2.

Read more…

Categories: Linux, MAC, SSH Tags:

Add Domain Name to Hosting on Plesk CLI

June 12th, 2012 Comments off

Hello Dear Readers,
It is the Summer season and I finally have more time to post stuff right after I do it.
Today I had to create a new domain in hosting under Plesk control panel command line and since I never kept notes for the previous times I did it, I had to undergo some documentation reading.
The best resources online are provided by Parallels themselves. It is one of the most well documented APIs that I have come across in the hosting world, have to give them that!
The URL is http://download1.parallels.com/Plesk/PP10/10.1.1/Doc/en-US/online/plesk-unix-cli/index.htm
All I had to do is issue the following two commands in order to create the domain in hosting and then to create a database related to it:

1. Creating a new domain name in Hosting on Plesk CLI

[root@216-55-186-14 bin]# /usr/local/psa/bin/domain --create domainname.me -owner Client1 -ip 216.55.186.14 -status enabled -hosting true -hst_type phys -dns false -login domain_user -passwd temp_pass -shell /bin/bash -cgi false -php true -php_safe_mode true

Read more…

Categories: Linux, Plesk, SSH Tags:

ls xargs rm

June 4th, 2012 2 comments

I keep forgetting the proper xargs arguments when I need them.
My intention today was to list old backup files based on the year time stamp and remove them.
Here is the one liner that works specifically because I have named my backups with the dd-mm-yyyy convention:

[root@webserver1 httpd]# ls -latf|grep 2009|xargs -L 1 rm

Here is a better approach that is independent from the file naming convention:

Read more…

Categories: Linux, SLES, SSH Tags:

SSH Tunnel + SOCKS Proxy Browsing

May 23rd, 2009 4 comments

This article I create for my personal reference since I tend to forget things such as names, addresses, SSH Tunnel configurations, severe acts of nature and so on…

Concerning Tunnels:

A tunnel is usually an underground passage from one place to another. Why is there a reason to go through a tunnel instead above ground I can’t really answer in general, but I sure know why I have to use tunnels in my daily IT routines.
The tunneling allows me to deliver payload securely and also allows me to access resources that are otherwise restricted from my location.
The example below demonstrates the setup of an SSH Tunnel that is used for simple internet browsing.

Read more…

Categories: SSH Tags: ,

Arcconf Bash Reporting Script

February 24th, 2009 4 comments

Monitor your RAID Controller at all times!
There is no need to tell you that Monitoring your RAID is of great importance.

Another important thing that I would like to say is that RAID is Not a Backup solution.

So just don’t use it is one or the chances are you will recall these words with bitter regret when you least expect it.
The above sounds like a curse, doesn’t it 🙂
And “when you least expect it” could be an uncomfortable period time for you [no internet, vacation to a deserted destination with no network coverage what so ever, no laptop or mobile device that could allow you to react,… here you can let your imagination lose for a moment and you might get a grasp of all the bad moments to have a RAID problem, or any other problem with your service but this article focuses on the RAID…]

Read more…

Categories: Linux, SLES, SSH Tags: , , , , ,

Oracle 10g RAC on ESXi3 using SLES9 SP5 – Part 9

February 16th, 2009 Comments off

Verify the Oralce Clusterware Installation

With the introduction of Oracle RAC 10g, cluster management is controller by the evmd, ocssd and crsd processes.
Run the ps command on both nodes to make sure that the processes are running.


rac01:/u01/clusterware/cluvfy # ps -ef |grep d.bin
root 4694 1 0 Feb13 ? 00:00:00 /u01/crs1020/bin/crsd.bin reboot
oracle 5242 4692 0 Feb13 ? 00:00:00 /u01/crs1020/bin/evmd.bin
oracle 5344 5326 0 Feb13 ? 00:00:00 /u01/crs1020/bin/ocssd.bin
root 20078 10946 0 09:44 pts/1 00:00:00 grep d.bin

Next you should check the /etc/inittab file, which is processed whenever the runlevel changes:

Read more…

Oracle 10g RAC on ESXi3 using SLES9 SP5 – Part 8

February 16th, 2009 3 comments

Oracle Clusterware Installation

Install the xntpd service and configure it.
You can use the Yast management console to do so.
It is extremely important that both nodes are configured to use ntp server and that they are regularly being updated.
If there is any difference at all within the date of all nodes this could result into inoperable cluster.

1. Copy the cpio.gz file to the first node and unzip the contents of the cpio file


#gunzip 10201_clusterware_linux_x86_64.cpio.gz
#cpio -idmv < 10201_clusterware_linux_x86_64.cpio

Read more…

Oracle 10g RAC on ESXi3 using SLES9 SP5 – Part 5

February 14th, 2009 Comments off

Configuring SSH access for the oracle user for Remote installation

Login as the oracle user and generate keys for ssh authentication without passwords.
I usually check the /etc/ssh/sshd_config file to make sure I have the proper configuration in place.
I usually disable the DNS check since it causes the ssh to timeout.

UseDNS no

Now I will generate the ssh keys with no password

Read more…