Learn SSH In 6 Minutes – Beginners Guide to SSH Tutorial
- January 2, 2024
- Posted by: MainInstructor
- Category: Web Development
![*](https://i0.wp.com/allprowebdesigns.com/wp-content/uploads/2024/01/1704216819_maxresdefault.jpg?resize=840%2C430&ssl=1)
Video Title: Learn SSH In 6 Minutes – Beginners Guide to SSH Tutorial
In this tutorial you’re going to learn all about ssh and how to use it as a web developer towards the end of the tutorial we’ll look at some real examples of connecting to servers via ssh so keep watching to see how you can make use of ssh for your projects
Ssh provides a secure connection to another computer typically a server to perform tasks like remotely executing shell commands you might want to see how much disk space is on a server or install a new service or app you can use ssh to log into the remote machine and run pretty much any command
You need to the problem with connecting to a remote machine over the internet is that your data will pass through many networks some of which could be unsecured and have malicious programs or users listening for interesting requests for example if you were trying to run a command on a remote server from your
Local computer over the internet your transmission could be intercepted viewed and possibly modified before it reached its intended target ssh prevents this by creating a secure connection between the two devices where you can safely send requests to run commands on the remote server ssh can also be used to secure any type
Of network resource for example http or ftp and we’ll take a look at some examples at the end of this video generally you would set up an ssh connection in the terminal or command prompt and you’ll need to have both ssh server software running on the remote machine and also an ssh
Client on your local machine to make a connection this is something that’s generally configured on new servers when they’re set up otherwise it’d be difficult to administer them and mac and linux computers will have an ssh client installed already for windows users either using a unix-like command prompt like gitbash or
The windows subsystem can provide command line access or you can use the putty client to manage connections to make an ssh connection you need to know at least two things the server host and the username that you wish to connect to the remote server as the server host can either be an ip
Address or domain name the username will be the user on the remote server that you’re connecting to not the user on your local computer you’ll also need some way of authenticating yourself to the remote server which can either be a password or a key we’ll look at keys in a moment but first
Let’s make a connection to a remote server with a password i’m going to connect to a remote server i have set up with digitalocean first i’ll type in ssh james at 142.93.58.60 where james is my username on the remote server and the ip address is the server host i’ll then be prompted
For a password which is hidden on the command line so it needs to be typed in carefully you might see a warning message asking you to accept the server’s fingerprint its identity so type yes if you trust the resource that you are trying to connect to if the username and password are correct
You’ll see the welcome message of the server and can happily execute any remote commands that my user is permitted to on the server let’s try that again with a domain name instead this time i’ll type ssh james at server.juniordevelopercentral.com so now i’m using server.juniordevelopercentral.com as the server host
Again i’ll enter the password for this user and once the ssh connection is established i can then run commands the other way to make an ssh connection is to use a key to prove you are authorized to access a server this way the server doesn’t need to request a password when you connect
Which is useful if you’re setting up your ssh connection in a script or a continuous integration workflow you can see your ssh keys in the hidden ssh folder of your local computer’s home directory the key consists of two parts the public key and the private key the private key stays on your local
Computer and the public key can be provided to other resources such as a remote server you want to connect to to verify that the connections you create are from you if you don’t have any keys you can create a new one with the ssh keygen command
Specifying a name for the key and local password to use if required to provide your public key to a remote server use the ssh copy id command with a username and server which will then copy your public key once the server has your public key you
Can create an ssh connection in the same way as before but this time you won’t be prompted for a password unless you created one for the key with the ssh key gen command probably the most common of the use of ssh for web developers is to copy your project files from your
Local computer to a remote server there are several ways you can do this including using the scp command short for secure copy which takes your local files and securely copies them to a remote server you can also specify the folder on the remote server the files are copied to
By doing this the files are transferred from the local computer and if you have configured a web server on the remote machine your project will be publicly visible scp however is marked as being outdated by the open ssh organization so alternative tools like sftp and rsync are available to help move
Files between clients and servers using any of these methods allows you to publish your content to your remote server in summary ssh or more specifically connecting to remote servers with ssh is an incredibly useful tool to help you administer the resources that host your websites and apps you can
Also use it to transfer your local web development project to a remote server once it’s ready to be published more information about ssh and how you can use it as a web developer check out some of the links in the description below you
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99
Check out some of the other tutorials in the Learn X in Y minutes series: https://www.youtube.com/watch?v=_IAFA2kA840&list=PLpc_YvcwbxaQmh1HRa2LYVdVfQArMsrw1
very good video.
Stop recommending PuTTY for Windows users. It's bad and you don't need it anymore. Windows can now run regular SSH and PowerShell plays perfectly well with it.
are u doing this through terminal?
I watched many videos on this topic and this video finally worked for me. Thumb up for sure. However I have to say that I have to play it in half speed to be able to use information or process it. Command line line and Linux is my new hobby now and therefore Im beginner. My question is (rhetoric) what is your audience that this video is intended ? I think it is beginner in SSH so I believe video need to mention which application to use to SSH in first place as foundation of explanation. I hope I do not sound hostile. I mentioning it only to make YouTube better place I guess or hope 🙂 Thank you for putting it together. Really good stuff.
really usefull video, thanks!
Thank you so much 🙂
i don't get it.. 🙁
it would be great if any of this actually worked
A precise tutorial saved me a lot of time. Thank you!
This video soooo good!!!!
I dоwnloaded everything is okay
muito bom!
love you bro
Brilliant video, really useful thankyou
I just saw an amazing grammarly ad. I hope you got it too. It was about Brant and his future selfes.
how to get a ssh name ?
very nice one
nice one
arnab mridha
avik sarkar
wow! that was super simple to understand, thanks mate!
very helpful, thank you!
I'm 45 seconds in and I already regret not coming here already. 😒
This is only helpful to people who already know what you're talking about.
Do checkout this video to understand ssh working https://youtu.be/FdPyFKU6k3M
Thank you!
nice. thanks for great tutorial
What a simple explanation….You won a subscriber …
Thats make me free internet 🤣
I want this next time in 5 min.
Lol, thank you 😀
Is his computer Mac ?
Hi Genius! How can i Install an SSL Certificate in SSH in my hosting without cpanel, Thanks a lot!
short and sweet. great video.
Omg I'm studying the security+ and you have saved my day
Thank you this is such a great video. Very clear and explanatory.
@2:49 who creates or who has the password or who does the password belongs to "my computer" or the remote computer ?
Thanks!
I would love to get some working hosts please
can you us how to use ssh with websocket+payload on terminal ?
Thank you! Excellent for a noob!
Thanks for sharing this awesome tutorial!!!
this was a very helpful video thank you
Advice to Windows users: Don't waste your time trying to make sense of what he's on about, just write down the syntax in a text file and copy-paste as needed.
what font you are using in your terminal?
tell me where to write the mac-address correctly?
what software do you use for video making/editing?
Aw. I was wondering how it actually worked
vow…Great Video. Thanks a lot