snipt

Ctrl+h for KB shortcuts

Bash

forward CouchDB Futon to local port

ssh -L 5985:127.0.0.1:5984 couchhost.com
https://snipt.net/embed/2fbf95f5b6b5e19828ff50220c851fe7/
/raw/2fbf95f5b6b5e19828ff50220c851fe7/
2fbf95f5b6b5e19828ff50220c851fe7
bash
Bash
1
2019-06-25T19:12:18
True
False
False
/api/public/snipt/3949/
forward-couchdb-futon-to-local-port
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>ssh -L 5985:127.0.0.1:5984 couchhost.com </span></pre></div> </td></tr></table>
couchdb, futon, server, ssh

Bash

vhost.conf reconfigure

1
2
3
#Execute this command to reconfigure your server to use the new vhost.conf file:

/usr/local/psa/admin/sbin/websrvmng -a -v
https://snipt.net/embed/1974801260acda785c3c1aae0ba07a1e/
/raw/1974801260acda785c3c1aae0ba07a1e/
1974801260acda785c3c1aae0ba07a1e
bash
Bash
3
2019-06-14T17:09:09
True
False
False
/api/public/snipt/3851/
vhostconf-reconfigure
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1">#Execute this command to reconfigure your server to use the new vhost.conf file:</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>/usr/local/psa/admin/sbin/websrvmng -a -v </span></pre></div> </td></tr></table>
ssh, vhost

Bash

Remove SSH Known Hosts

rm ~/.ssh/known_hosts
https://snipt.net/embed/28a97dca9892077ca04276b2461bc1cc/
/raw/28a97dca9892077ca04276b2461bc1cc/
28a97dca9892077ca04276b2461bc1cc
bash
Bash
1
2019-05-26T01:46:35
True
False
False
/api/public/snipt/3824/
remove-ssh-known-hosts
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>rm ~/.ssh/known_hosts </span></pre></div> </td></tr></table>
remove, ssh

Bash

copiar archivos con ssh

scp /home/boris/archivo.txt [email protected]:/home/boris/Download
https://snipt.net/embed/c304c774f66be1303d4444b36c9a53dd/
/raw/c304c774f66be1303d4444b36c9a53dd/
c304c774f66be1303d4444b36c9a53dd
bash
Bash
1
2019-06-15T21:54:25
True
False
False
/api/public/snipt/3765/
copiar-archivos-con-ssh
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>scp /home/boris/archivo.txt [email protected]:/home/boris/Download </span></pre></div> </td></tr></table>
copiar, ssh

Bash

How to compute the fingerprint of a system's SSH RSA key to verify against the client's prompt.

ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
https://snipt.net/embed/4e74a88086d12f520a570c27f05e1eb2/
/raw/4e74a88086d12f520a570c27f05e1eb2/
4e74a88086d12f520a570c27f05e1eb2
bash
Bash
1
2019-06-24T20:56:12
True
False
False
/api/public/snipt/3639/
how-to-compute-the-fingerprint-of-a-systems-ssh-rsa-key-to-verify-against-the-clients-prompt
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key </span></pre></div> </td></tr></table>
ssh

Bash

tail ruby app

tail -f /home/55152/containers/rails/metro/log/mongrel.log
https://snipt.net/embed/b563d3025fb220a80eebb7548d32db9d/
/raw/b563d3025fb220a80eebb7548d32db9d/
b563d3025fb220a80eebb7548d32db9d
bash
Bash
1
2019-06-24T17:36:56
True
False
False
/api/public/snipt/3586/
tail-ruby-app
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>tail -f /home/55152/containers/rails/metro/log/mongrel.log </span></pre></div> </td></tr></table>
ruby, ssh, tail

Bash

ssh-keygen

ssh-keygen -t dsa
https://snipt.net/embed/5356c138de038f32891acc3ddf8f3ed6/
/raw/5356c138de038f32891acc3ddf8f3ed6/
5356c138de038f32891acc3ddf8f3ed6
bash
Bash
1
2019-06-25T06:04:36
True
False
False
/api/public/snipt/3573/
ssh-keygen
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>ssh-keygen -t dsa </span></pre></div> </td></tr></table>
bash, generate, key, ssh

Bash

Use your iPhone's 3G to connect Internet

1
2
3
4
5
6
7
8
// 1. Create an Ad-HOC wireless network over Airport
// 2. Connect iPhone to this network
// 3. ssh to iPhone using following snippet

ssh -ND 9999 [email protected]_ADDRESS

// 4. set your browsers socks proxy to localhost:9999
// Done.
https://snipt.net/embed/d21570de5ffdc838cc09e047ce60eb31/
/raw/d21570de5ffdc838cc09e047ce60eb31/
d21570de5ffdc838cc09e047ce60eb31
bash
Bash
8
2019-06-24T09:06:25
True
False
False
/api/public/snipt/3333/
use-your-iphones-3g-to-connect-internet
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>// 1. Create an Ad-HOC wireless network over Airport </span><span id="L-2"><a name="L-2"></a>// 2. Connect iPhone to this network </span><span id="L-3"><a name="L-3"></a>// 3. ssh to iPhone using following snippet </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>ssh -ND <span class="m">9999</span> [email protected]_ADDRESS </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a>// 4. <span class="nb">set</span> your browsers socks proxy to localhost:9999 </span><span id="L-8"><a name="L-8"></a>// Done. </span></pre></div> </td></tr></table>
3g, bash, internet, iphone, ssh, unix
https://snipt.net/embed/321a8842a2becae7d949d810335ee32d/
/raw/321a8842a2becae7d949d810335ee32d/
321a8842a2becae7d949d810335ee32d
bash
Bash
1
2019-06-23T18:09:34
True
False
False
/api/public/snipt/3251/
gs-dv-migration-localhost-check
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>grep -rl <span class="s1">&#39;localhost&#39;</span> * </span></pre></div> </td></tr></table>
(dv), (gs), dedicated-virtual, grep, grid-service, localhost, server, ssh