We are still actively working on the spam issue.

Difference between revisions of "SSH"

From InstallGentoo Wiki
Jump to: navigation, search
m (GNU/Linux and UNIX)
(Replaced Putty download link with https link. Added key pair section.)
Line 4: Line 4:
 
===Windows===
 
===Windows===
 
====The Easy Way====
 
====The Easy Way====
*Download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PuTTY] or Firessh
+
*Download [https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html PuTTY] or Firessh
 
*Type the IP address of the server and choose "SSH" as the connection type. Type the external IP address, not the internal IP address (To find the external IP address, [http://whatismyip.com click here])
 
*Type the IP address of the server and choose "SSH" as the connection type. Type the external IP address, not the internal IP address (To find the external IP address, [http://whatismyip.com click here])
 
*Agree to add the host key and login with a username + [[Passwords | password]] from the server (I.E., a Windows account, OSX account, etc.). That's it, you're SSHing!
 
*Agree to add the host key and login with a username + [[Passwords | password]] from the server (I.E., a Windows account, OSX account, etc.). That's it, you're SSHing!
Line 24: Line 24:
 
*Browse using the server's internet ([http://lifehacker.com/237227/geek-to-live--encrypt-your-web-browsing-session-with-an-ssh-socks-proxy Read this]) (If you connect via PuTTY, an easier way is Connections>SSH>Tunnels. Check "Dynamic" and pick a port. Now follow the guide.)
 
*Browse using the server's internet ([http://lifehacker.com/237227/geek-to-live--encrypt-your-web-browsing-session-with-an-ssh-socks-proxy Read this]) (If you connect via PuTTY, an easier way is Connections>SSH>Tunnels. Check "Dynamic" and pick a port. Now follow the guide.)
 
*Other stuff that I don't know.
 
*Other stuff that I don't know.
 +
 +
==Generating an SSH key pair for easy and secure login==
 +
Instead of using a password to login to remote systems, you can also use a key pair.
 +
 +
It works by generating a public and a private key, optionally protected by a strong passphrase. You then place the public key on the remote system, the private key is stored somewhere safe, where unauthorized people can't access it.
 +
 +
See the following link on how to generate an SSH key pair:
 +
 +
[https://www.ssh.com/ssh/keygen/ How to use ssh-keygen to generate a new SSH key | SSH.COM]
 +
 +
 
==Conclusion==
 
==Conclusion==
 
Any /g/entleman who can leave a computer running 24/7 has no reason not to run an SSH server. Honestly, even some junk box will work just fine, no need to leave a gaming rig on to SSH.
 
Any /g/entleman who can leave a computer running 24/7 has no reason not to run an SSH server. Honestly, even some junk box will work just fine, no need to leave a gaming rig on to SSH.

Revision as of 19:32, 20 February 2019

SSH: Making unsafe networks safer since 1995.

SSH (Secure Shell) is a network protocol that allows secure communications between two devices. What that means for the average /g/entleman is that you can run SSH on a server and then securely log in to your server anywhere when properly configured. In simpler terms, you can run your server via command-line anywhere. You can also browse the internet with your server's connection, effectively bypassing the filters many underageb& have on their school networks. SSH is free software with utilities on all major operating systems.

Connecting to an SSH Server

Windows

The Easy Way

  • Download PuTTY or Firessh
  • Type the IP address of the server and choose "SSH" as the connection type. Type the external IP address, not the internal IP address (To find the external IP address, click here)
  • Agree to add the host key and login with a username + password from the server (I.E., a Windows account, OSX account, etc.). That's it, you're SSHing!

The Hard Way

  • Open Cygwin
  • Type "ssh <ipaddress or domain name> -l <username>" without the quotes
  • Type your password in. That's it, you're SSHing!

NOTE: This is also how you SSH into a server in OSX and Linux. Replace Cygwin with Terminal and the commands work the same.

GNU/Linux and UNIX

What Can I Do?

  • Browse the server via command-line (I hope you know UNIX shell commands)
  • Transfer files between the client and the server (You can use SSH, but there are better tools for the job)
  • Browse using the server's internet (Read this) (If you connect via PuTTY, an easier way is Connections>SSH>Tunnels. Check "Dynamic" and pick a port. Now follow the guide.)
  • Other stuff that I don't know.

Generating an SSH key pair for easy and secure login

Instead of using a password to login to remote systems, you can also use a key pair.

It works by generating a public and a private key, optionally protected by a strong passphrase. You then place the public key on the remote system, the private key is stored somewhere safe, where unauthorized people can't access it.

See the following link on how to generate an SSH key pair:

How to use ssh-keygen to generate a new SSH key | SSH.COM


Conclusion

Any /g/entleman who can leave a computer running 24/7 has no reason not to run an SSH server. Honestly, even some junk box will work just fine, no need to leave a gaming rig on to SSH.