≡ Menu

remote server

SSH: Use Remote Bash / KSH source Command Set Variable Locally From a Remote Server

I have setup a master / local server combination using OpenSSH. My local server depends upon master server for a remote sourcing. The remote sourcing should set a large number of variables locally in a bash shell script. The code is:

user@slave $ source ssh user@master "/service/dyn.master.setenv.sh --mode=slave"
echo "$var"

The var is not setting and I am getting various errors. How can I do a remote "source" of a bash script file (from master.example.com) and set a shell variable locally at slave.example.com?
[click to continue…]

Carry Private SSH RSA / DSA Key For Connection Using Unix / Linux Shell Script

How do I add my RSA or DSA keyfile in shell script itself for the connection so that I need to carry only one file on my USB pen drive instead of $HOME/.ssh/id_rsa file under Unix / Linux operating systems?
[click to continue…]

RHEL / CentOS 6 Linux Install Memcached High Performance Distributed Memory Object Cache Server

How do I install memcached server under Red Hat Enterprise Linux or CentOS Linux version6.x server running on IBM hardware to cache query for my php/perl/python based apps?
[click to continue…]

Remote Shutdown of a Linux / Unix Computer From MS-Windows

How do I shutdown remote Linux or UNIX system from MS-Windows system?
[click to continue…]

mysqldump: Copy Database Using Shell Pipes

How do I use mysqldump command with Unix shell pipes?
[click to continue…]

HowTo: Find Out RHEL 6 / CentOS 6 Kernel Version

How do I find out my RHEL (Red Hat Enterprise Linux) 6 Linux kernel version number running on HP server?
[click to continue…]

Install Iptables Firewall in Redhat / CentOS Linux

How do I install iptables under Redhat (RHEL) or CentOS or Fedora Linux operating systems?
[click to continue…]

HowTo: Run Firefox From The Command Line

How do I run Firefox browser from the Linux command line (shell prompt)? How to run Firefox from command line on Linux based server?
[click to continue…]

Linux: Iptables Find / Check Banned IP Address

How do I find or check IP's that are currently banned using iptables command in Linux? How do I verify that IP address is banned or not in Linux?
[click to continue…]

Linux: rsync Copy Directories Structures Tree Only

I am looking for to only sync directories structures only. How do I copy directory structure tree without copying any files under Linux or UNIX operating system to remove server or local directory?
[click to continue…]