Welcome To Snipplr
Everyone's Recent Snippets Tagged ssh
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I use this to quickly (in one line) copy my own id_rsa.pub to remote server so I can connect w/out using my password.
1
1216
posted 14 years ago by electblake
1. Create a proxy on 8080 to foreword traffic to your server
2. Install Foxyproxy and use options 127.0.0.1:8080 and SOCKS5 enabled
3. Profit
1
1006
posted 14 years ago by benpjohnson
Useful when having multiple ssh connections to remote servers open in os x. Throw this in your ~/.bash_profile
0
935
posted 14 years ago by iloveitaly
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
1077
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
1267
posted 15 years ago by narkisr
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
1208
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
4635
posted 15 years ago by kevinbanet
Useful when logged in the server via ssh.
In Leopard, the file would be /Library/Preferences/com.apple.ScreenSharing.launchd
0
1206
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
1013
posted 15 years ago by danshields
Enable a secure tunnel for safe browsing.
Remember to enable SOCKS proxy. SOCKS host: "localhost" - Port: 9999
0
877
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
859
posted 15 years ago by iblis
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
887
posted 15 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
1239
posted 16 years ago by hotdiggity