Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged ssh



Useful when having multiple ssh connections to remote servers open in os x. Throw this in your ~/.bash_profile
0 1035 posted 15 years ago by iloveitaly
1 1305 posted 15 years ago by choise
This will recursively search your directory tree (starting at dir ‘dot’) and chmod 755 all directories only. find . -type d -exec chmod 755 {} \; Similarly, the following will chmod all files only (and ignore the directories): find . -...
1 1198 posted 15 years ago by MikeyLikesIt
An easy was to tunnel remote Couchdb instance into a local machine using ssh tunneling, by using the 5893 local port we enable the local instance to run (replication is only a click away).
0 1382 posted 15 years ago by narkisr
Tunneling vnc over ssh
0 1149 posted 15 years ago by narkisr
procedure for updating drupal core.
0 844 posted 15 years ago by MikeyLikesIt
0 1019 posted 15 years ago by marcelodornelas
Count number of files in a directory
1 1118 posted 15 years ago by marcelodornelas
Instead of ~/.ssh/id_rsa.pub, you can choose any location on your local machine where your *public* key lives. You may need to adjust the file permissions on remote authorized_keys aftwterwards, depending on the configuration of the remote ssh serve...
0 1309 posted 15 years ago by berkes
<p>This zips all files and directories</p> <p>-r:Includes all files and directories -> Files</p> <p>filename.zip:The zip file you want to create</p> <p>foldername:The folder you are targetting or use * if your currently in the folder</p>
0 4897 posted 15 years ago by kevinbanet
How to setup a remote git repository via SSH.
0 1332 posted 15 years ago by narkisr
Wish i'd known about this several years ago
0 1018 posted 15 years ago by nate63179
Useful when logged in the server via ssh. In Leopard, the file would be /Library/Preferences/com.apple.ScreenSharing.launchd
0 1341 posted 15 years ago by alvarezrilla
Where: * 3307 is the local port used to connect to the remote database. You can use 3306, however, this could conflict with your PC’s MySQL installation. * localhost and 3306 is the MySQL address from the remote server (most people will...
0 1117 posted 15 years ago by danshields
Enable a secure tunnel for safe browsing. Remember to enable SOCKS proxy. SOCKS host: "localhost" - Port: 9999
0 973 posted 15 years ago by MatiasD
Encrypts traffic between host port 5900 and client port 5921 (view the forwarded traffic at `vnc://localhost:5921`).
0 974 posted 16 years ago by iblis
1 1318 posted 16 years ago by radarseven
Simply change the email address and add this to the bottom of your .bashrc file in your home directory. You may also want to add this to the .bashrc in the /root directory, and the .profile in /etc to ensure you are notified anytime your server is ac...
0 1033 posted 16 years ago by arnoldb
Handy when web hosts limit database upload size. Create folder in home directory call "mysql_dump", upload and extract mysql file into this directory. Ask web host to enable SSH.
0 1393 posted 16 years ago by hotdiggity
commands for starting, stopping etc openSSH
0 1078 posted 16 years ago by stiobhart
* _HOST_: remote host * _PORT_: ssh port (default 22) * _PATH_: remote path to synchronize
0 1029 posted 16 years ago by Dorgendubal
To connect to your database remotely, tunnel in via SSH. This creates an encrypted tunnel to your Slice’s mySQL port (3306) on your local port of 8888. Point your local admin/GUI app to localhost:8888. If this does not work, and you are running...
3 1255 posted 16 years ago by zachwood
ssh-copy-id + port
1 1291 posted 16 years ago by endorfin
Assumes logs are in /var/log/sshd/* and makes a few text format assumptions that probably make this specific to OpenSSH. Simple, but more than you can see from a quick less.
3 1441 posted 17 years ago by scarfboy
1. Allows encryption between client and server 2. Bypasses filtered port, if any on the standard port for the given service.
1 1265 posted 17 years ago by iblis