EXTRA NOTES (Login w/o pass & changing port) ssh -p 777 username@hostname replace 777 with the port number that you want to use that isn't the default port 22. Generate a key > ssh-keygen -t rsa -b 2048 Copy that key > ssh-copy-id username@hostname SSH to the sys > ssh username@hostname Note - You will be prompted to enter a file to save the key. By default, it will be saved in ~/.ssh/id_rsa for the private key and ~/.ssh/id_rsa.pub for the public key. You'll be asked to enter an optional passphrase. This provides an extra layer of security. If you choose to use a passphrase, make sure to remember it. You can also copy the key once generated manually.
CLEAR! CLEAR! thank you I was confused as SSG Client asked for username and password. And I was like what password? Do have to configure it first. Thank you you made it clear.
These features are usually dependent on the type of windows you install before.. if it's windows 10 home, you'll need to set up a lot from these optional features !
You are so good at helping people and people like you are amazing to this world. For me i have a somewhat different question. Every time i play counter strike 2 i get this "timed out by remote host" and when i diagnose my adaptor it says i have more than one connection to this computer. Is there anything that you would recommend me doing that would be a somewhat easy / beginner fix for this? Thank you so much in advance.
Ahh thanks. Love to hear nice comments like this. Some things I can think of checking assuming you're not using any kind of VPN Check for multiple network connections. In your adapter settings - If your computer has multiple network connections (e.g., both Wi-Fi and Ethernet), try disabling one of them to see if it resolves the issue. Update your network drivers. Outdated or corrupted network drivers can cause connectivity problems. Go to the manufacturer's website for your network adapter and download the latest drivers. Check for background high bandwidth programs. Make sure there are no programs running in the background that might interfere with your network connection. This includes torrents, streaming services, or any other high-bandwidth activities. Check firewall and antivirus settings. Make sure that your firewall or antivirus software is not limiting or blocking the game's connection. Add the game to the exceptions.
@@SavvyNik thank you my friend I’m working on the last one as I’ve tried the others I appreciate your time and being an excellent human being that you are 🙏
No it's not any more secure. The protocol itself takes care of the security/encryption between connections. Where you use ssh from doesn't matter so long as the shell you're using isn't compromised.
The server is meant to allow connections into your computer so if you want to access remote devices via ssh outside your computer you'll need the client not the server.
@@SavvyNik ok thanks savvy :) umm i am getting an error when i try using ssh it says "ssh: connect to host port 22: Connection timed out" the bit is just the ip i put in i just dont want to dox myself
@@jld-ni3vf you'll probably have to open up a port in your firewall in order to access things remotely on a public ssh server. I'd be careful with this.
Question: What is the correct terminfo entry to use on Linux for the Windows command prompt window? Basic things work fine as xterm-256color but things like vi do not work properly. Thanks for any help you can provide.
Hello, Very good video! i was asked in an interview to name a command that can be used to see when a log file was last edited? it it the tail command please?
Thanks I'm glad you enjoyed it. Make sure to smash that like button for me if you haven't already. I assume this is for a Linux operating system? If so there's the ls (list) command. This allows you to get a list of files within the current working directory. You can pass the -lt flag (ls -lt) to get the last modified time/date of the current files in the directory. There are other ways such as using the stat command / date command but ls is probably the most widely used.
Depends on how the ssh key was configured, sometimes they ask for a paraphrase which becomes your password. To get past it you don’t put anything in for a paraphrase when setting the keys up. Make sure to smash that like button and glad you enjoyed the vid.
Nik how do i access my ubuntu web server by a different ssh port i have set up and i have blocked incoming connections to my ubuntu via port 22, and, while i am asking you about the port, what about if i have also removed password authentication and only allow passphrases, can you answer these 2 questions for me? please
ssh -p 777 username@hostname replace 777 with the port number that you want to use that isn't the default port 22. Generate a key > ssh-keygen -t rsa -b 2048 Copy that key > ssh-copy-id username@hostname SSH to the sys > ssh username@hostname Note - You will be prompted to enter a file to save the key. By default, it will be saved in ~/.ssh/id_rsa for the private key and ~/.ssh/id_rsa.pub for the public key. You'll be asked to enter an optional passphrase. This provides an extra layer of security. If you choose to use a passphrase, make sure to remember it. You can also copy the key once generated manually.
It asks for password everytime, Can we add ssh keys again here as we did in video where you made windows as ssh server and linux as client and added ssh keys, I actually read about it on google but fails to use it. Can you please help ? My objective is to ssh over linux from windows using ssh keys so it does not ask for password everytime.
This isn't simple. You'll have to do some research but generally if the computer you are trying to connect to via ssh has an ssh server installed and you have the proper ports forwarded through your firewall (default port 22) then you can use a public ip address to ssh to the computer. This is not recommended because it can create vulnerabilities if you have a port open to the public.
If you setup an ssh sever (openssh server) on your bootable usb linux drive sure you can ssh between the two, but when you remove or restart you'll loose your ssh server unless your live bootable disk is persistent.
@@SavvyNik my USB is persistent but the user name of my O.S os User because I am using live parrot os but if I enter the name and the i.p adress it is not working
@@SavvyNik yea but I don’t know the user name for the ssh server because all I’ve uses have the same name and the name is user because i am using parrot live usb
@@SavvyNik Hmm, I figured out how to ping my VM, but whenever I use SSH to connect to it, it tells me the connection was refused. Do I need the OpenSSH server software?
Download a 25 page Linux Checklist here - learn.savvynik.com Tutorial for installing the SSH Server - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HCmEB5qtkSY.html Need help transferring files over SSH? - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2u0I-U0D7Uk.html
I tried this but it won't ask me for a password, it just goes to next line and waits and then says ssh : connect to *ip address* : connection timed out
Hey, wondering if you can help me. I installed the openssh on my ubuntu server, and I also installed both SSH client and server on Windows optional features. However, I am unable to connect to the server through CMD, cockpit (web console) and also through my phone SSH app. I tried turning off my VPN and Antivirus (if that makes a difference, but it didn't do anything to help).
Check your firewall both on the router and on any computers that you have. You need to make sure you can ping the SSH server and that all connections are working before connecting via SSH. Also confirm that the daemon (process/service) for SSH is, in fact, running and listening on port 22 on your Ubuntu Server side.
Durgadatta, great question. No you can use another tool called scp (secure file copy) in order to copy over a file. It goes something like the following: scp /host/computer/path/file /remote/computer/path/file You would have to add the -r switch in order to copy an entire folder. Try looking up the command.
@@durgadattadas5830 Easiest way would be to install scp on the client sever and use scp to copy it over. Otherwise it becomes a pretty big hassle haha!
For a text file, including program code, one way is to list the text on the Windows machine. Open a text editor on the remote Linux machine. Copy and paste the text from the listing to the editor and save.
As long as your still trying to ssh you can switch ports by doing something like the following: ssh -p 23 @ (the -p means use a different port followed by the specified port for ssh - 23 in this example).
I'm not following. You can use ssh without putty in the command line interface if you install this client like shown in the video. This helps you get rid of putty and use ssh natively.
@@ahmad.software sort of. I bookmarked a Hong Kong link so going through HK seems to work but majority of the time I use TWS desktop app and that doesn't have any connection issues
I cant for the life of me find any info on how to change the default port ssh tries to connect to. I changed my linux server port from 22 to a different port to harden security, but I can only ssh from my windows 10 into it by adding a -p *newport#* command to the line. I want to be able to have windows automatically use the port when connecting so I don't have to type -p *port* every time.
ssh can contain a config file. You'll have to find where your system would read the config file from and then place you settings in there (aka a special port #) here's an example but this is geared towards linux - linuxize.com/post/using-the-ssh-config-file/
@@SavvyNik Thanks for the reply! I tried that, I specified in sshd_config in c:/programdata/ssh folder and removed the # from the port line and changed the port but it still tries to connect via port 22. I also tried created a file called "config" on windows 10 like that link demonstrates but the ssh client doesnt even recognize it and still tries to connect via port 22. I was able to change the port# server side on my linux vm by altering the config file but my windows10 client ssh doesnt connect without adding the -p *new-port-here* string.
It's very interesting 😉 I have a problem, when I try to connect with a device of my home network I type my password and everything is OK, but when I try to connect from outside of my network, although I opened 22 port on my router, when I type my local password it says me wrong password and I can't understand why🤔 can you help me please?
Doesn't make much sense. Logging in with the same pass and user of the account should work. However I would suggest closing port 22 and not allowing connection to your local home network. This is a security risk. You can always exchange keys to get rid of passwords if you can't get the pass working.
Then you can use SCP to transfer between the two. This is probably the easiest way besides physically do it like with a USB. You can also look up a service called Samba server which will allow you to access a file share on your Linux computer from Windows.
You need SSH Server on the computer you are trying to ssh to with port 22 opened up. Then you need a client on the computer you are initiating the connection from. If you can't ping the computer you are trying to connect to that's usually an indication that you don't have a proper setup.
Leslie this was meant to show you how to install SSH client for use on Windows 10 and to be able to use the client through command prompt.. not to solve networking issues.
@@SavvyNik thanks for answering, I've found a solution. But I'm not sure yet if it's a good one. To whom this might help : on your linux machine, open the file sshd_config with your favorite editor . For example : sudo nano /etc/ssh/sshd_config and look for these lines: # To disable tunneled clear text passwords, change to no here! #PasswordAuthentication no I just put a # in front of Password Authentication no
@@khayryazzez you need to make sure to have a local account whatever is hosting the ssh server. Otherwise you won't be able to login. You can setup a local account through the user settings/accounts page.
@@SavvyNikI have did it, even i have attempted to connect to my machine by (username@localhost(or my address )) and he always keep asking about the password