Librenix  
(Show all SSH articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

SSH tips and tricks

Up
vote
Down

How to use ssh to encrypt X sessions, execute remote command, and perform port forwarding, etc...
If you just want to run a quick command on a remote machine, it can be faster to just run the command and skip getting a shell on the remote machine. There's no need to log in if you just want to make a quick edit to a file, or just run one command, right? SSH allows you do to this pretty easily. The syntax is ssh user@host command . For instance, if you want to restart Apache on a remote machine without logging in, you could run the following:

ssh user@webserver sudo /etc/init.d/apache2 restart
 read more | mail this link | score:7011 | -Ray, December 6, 2005
More Sysadmin articles...

Abstract Art in Tallahassee

admin headlines

Setup Dashboard and VNC console on Two Node Controller+Compute Neutron GRE+OVS+Gluster Fedora 20 Cluster

Install and use OpenVZ on Ubuntu 13.04

Tutorial: Install Apache2, PHP5, MySQL on OpenSUSE 12.3

Tutorial: Squid Siblings on CentOS 6.3 with WCCP

Tutorial: Scientific Linux 6.3 Samba Server

Tutorial: Build Nginx from source on Debian 6

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin