1 00:00:06,540 --> 00:00:07,950 - All right, you have just learned how 2 00:00:07,950 --> 00:00:10,770 to use SSH from Linux. 3 00:00:10,770 --> 00:00:13,500 You can also use SSH from Windows, 4 00:00:13,500 --> 00:00:15,900 but you need to install an additional program. 5 00:00:15,900 --> 00:00:18,000 And that's what I'm going to show you now. 6 00:00:19,834 --> 00:00:23,370 So in order to work with SSH from Windows, 7 00:00:23,370 --> 00:00:26,850 MobaXterm is the program that you want to use. 8 00:00:26,850 --> 00:00:31,110 It's the most commonly used program 9 00:00:31,110 --> 00:00:34,950 that allows you to establish SSH session 10 00:00:34,950 --> 00:00:36,963 and even graphical sessions. 11 00:00:38,820 --> 00:00:42,930 So here we go, MobaXterm free Xserver and tabbed SSH client 12 00:00:42,930 --> 00:00:45,540 for Windows, that's the one that we need. 13 00:00:45,540 --> 00:00:46,833 So I need to download. 14 00:00:51,270 --> 00:00:54,330 And then I'm going to use the Home Edition. 15 00:00:54,330 --> 00:00:57,660 I mean, you can always purchase the Professional Edition 16 00:00:57,660 --> 00:01:00,390 if you want to, but there is no need to, 17 00:01:00,390 --> 00:01:03,513 and in order to get to know it, just use the Home Edition. 18 00:01:04,470 --> 00:01:07,710 There's a Portable edition, there's an Installer edition. 19 00:01:07,710 --> 00:01:10,080 The Portable edition doesn't require you 20 00:01:10,080 --> 00:01:11,100 to install anything, 21 00:01:11,100 --> 00:01:15,270 and the Installer edition requires you to install. 22 00:01:15,270 --> 00:01:17,220 The reason why there is this Portable edition 23 00:01:17,220 --> 00:01:19,740 is that it might be convenient if you are on a computer 24 00:01:19,740 --> 00:01:21,420 where you cannot install anything, 25 00:01:21,420 --> 00:01:23,550 then you can use the Portable edition. 26 00:01:23,550 --> 00:01:25,350 I want to have it on Windows, 27 00:01:25,350 --> 00:01:27,393 so I'm going for the Installer edition. 28 00:01:28,470 --> 00:01:31,050 So after that downloads, in the Downloads folder 29 00:01:31,050 --> 00:01:33,333 you will find the MobaXterm_Installer. 30 00:01:34,260 --> 00:01:35,310 You need to extract it 31 00:01:35,310 --> 00:01:38,040 before you can actually do something with it. 32 00:01:38,040 --> 00:01:41,160 So in Downloads, that is okay. 33 00:01:41,160 --> 00:01:43,620 If you don't extract it, you get error messages 34 00:01:43,620 --> 00:01:45,720 about files that could not be found. 35 00:01:45,720 --> 00:01:48,150 And here we go, we have the installer, 36 00:01:48,150 --> 00:01:51,990 and it's showing us automatically what we need. 37 00:01:51,990 --> 00:01:55,420 So I'm going to run Next and accept the license 38 00:01:56,610 --> 00:01:58,003 and Install the program. 39 00:01:58,003 --> 00:01:59,700 (tones chiming) 40 00:01:59,700 --> 00:02:01,653 And yes, it is okay. 41 00:02:05,010 --> 00:02:08,670 And then Finish to complete the installation. 42 00:02:08,670 --> 00:02:12,750 So at this point, MobaXterm should be available. 43 00:02:12,750 --> 00:02:16,233 So let's check, moba, there we go, MobaXterm. 44 00:02:17,490 --> 00:02:19,140 It needs to do a little bit of work 45 00:02:19,140 --> 00:02:20,583 for the first-time startup. 46 00:02:23,310 --> 00:02:26,250 And once it is done, this is what we get. 47 00:02:26,250 --> 00:02:29,883 So this is Windows Defender Firewall. 48 00:02:30,900 --> 00:02:34,203 I am going to allow everything. 49 00:02:35,310 --> 00:02:37,170 Otherwise, it doesn't work so well. 50 00:02:37,170 --> 00:02:38,700 So what do we have? 51 00:02:38,700 --> 00:02:43,200 Well, we have this option to Start new remote session, 52 00:02:43,200 --> 00:02:45,600 and that is what I want to do. 53 00:02:45,600 --> 00:02:49,890 So I'm clicking on Session, and then I'm using SSH. 54 00:02:49,890 --> 00:02:52,650 There are different protocols that can be supported, 55 00:02:52,650 --> 00:02:55,440 but SSH is really what you want to do. 56 00:02:55,440 --> 00:02:58,860 The Remote host, that's the name or the IP address 57 00:02:58,860 --> 00:03:01,440 of the host you want to connect to. 58 00:03:01,440 --> 00:03:03,690 So let's connect to the 141, 59 00:03:03,690 --> 00:03:07,083 and I want to connect as user student. 60 00:03:09,990 --> 00:03:12,780 So you need to tick the Specify username option, 61 00:03:12,780 --> 00:03:16,440 and then you can actually connect as this user. 62 00:03:16,440 --> 00:03:17,520 So here we go. 63 00:03:17,520 --> 00:03:20,070 I'm getting a login prompt, an email login prompt. 64 00:03:20,070 --> 00:03:23,223 I type the password, and yeah, I'm okay. 65 00:03:24,120 --> 00:03:25,740 Let's do this password. 66 00:03:25,740 --> 00:03:29,430 And you can even use a master password. 67 00:03:29,430 --> 00:03:32,640 This master password allows you to store all your passwords 68 00:03:32,640 --> 00:03:35,340 behind one password. 69 00:03:35,340 --> 00:03:38,070 And that sounds like a good idea. 70 00:03:38,070 --> 00:03:43,070 And then as you can see, I'm on CentOS, and on this CentOS, 71 00:03:43,380 --> 00:03:46,350 we can see everything that I've done so far. 72 00:03:46,350 --> 00:03:49,590 So this is the Windows way of remotely connecting 73 00:03:49,590 --> 00:03:52,513 to any Linux server that you want. 74 00:03:52,513 --> 00:03:56,370 The nice thing is that it is going to keep my session, 75 00:03:56,370 --> 00:04:00,180 and the next time I need to restore, I need to get access, 76 00:04:00,180 --> 00:04:03,990 then I can just click this session 77 00:04:03,990 --> 00:04:06,270 from the MobaXterm window. 78 00:04:06,270 --> 00:04:10,140 Now that we are talking about Windows access to Linux, 79 00:04:10,140 --> 00:04:12,127 there is one more utility that I want to show you, 80 00:04:12,127 --> 00:04:14,460 and it is WinSCP. 81 00:04:14,460 --> 00:04:17,580 WinSCP is really a utility that you also need 82 00:04:17,580 --> 00:04:21,903 in your Windows toolkit in order to work with Linux. 83 00:04:23,340 --> 00:04:24,660 Don't click the wrong link. 84 00:04:24,660 --> 00:04:27,450 This is WinSPC. 85 00:04:27,450 --> 00:04:29,340 We don't need WinSPC. 86 00:04:29,340 --> 00:04:31,710 We need WinSCP. 87 00:04:31,710 --> 00:04:33,660 So I'm clicking on download, 88 00:04:33,660 --> 00:04:37,690 and I am using the Go to download. 89 00:04:37,690 --> 00:04:40,020 It's Windows, so it's always a good idea to verify 90 00:04:40,020 --> 00:04:41,910 that you go to the right page, 91 00:04:41,910 --> 00:04:45,000 and there we go, winscp.net. 92 00:04:45,000 --> 00:04:47,340 And as you can see, it's quite popular, 93 00:04:47,340 --> 00:04:50,580 172 million downloads so far. 94 00:04:50,580 --> 00:04:53,340 I am using my WinSCP, 95 00:04:53,340 --> 00:04:57,300 and it is right here. 96 00:04:57,300 --> 00:05:02,300 So download, and the download will start shortly. 97 00:05:02,490 --> 00:05:03,323 There we go. 98 00:05:05,220 --> 00:05:07,260 So the file's already downloaded. 99 00:05:07,260 --> 00:05:08,943 Now we can install it. 100 00:05:09,840 --> 00:05:12,720 And so for all users, that's a good idea. 101 00:05:12,720 --> 00:05:14,523 And yes, you can make changes. 102 00:05:17,760 --> 00:05:18,900 And there we go. 103 00:05:18,900 --> 00:05:23,070 And what is nice about WinSCP, it's using a GNU license, 104 00:05:23,070 --> 00:05:26,343 so it's completely free and open source software. 105 00:05:27,480 --> 00:05:30,600 You wanna go for the typical installation. 106 00:05:30,600 --> 00:05:32,220 Then you do your Next. 107 00:05:32,220 --> 00:05:34,590 You'll probably like the Commander view, 108 00:05:34,590 --> 00:05:37,290 and then you Install. 109 00:05:37,290 --> 00:05:41,790 And WinSCP, well, is giving you a nice graphical interface 110 00:05:41,790 --> 00:05:45,543 that allows you to copy files around. 111 00:05:46,530 --> 00:05:50,280 So you can decide for yourself if you want to do a donation. 112 00:05:50,280 --> 00:05:51,510 If you don't, it's okay. 113 00:05:51,510 --> 00:05:55,020 If you do, then you can do that in the page 114 00:05:55,020 --> 00:05:56,373 as was just proposed. 115 00:05:57,330 --> 00:06:00,870 I am just going to look for it using winscp. 116 00:06:00,870 --> 00:06:02,613 There we go, WinSCP App. 117 00:06:04,620 --> 00:06:08,460 And I'm getting a pop-up window, and in that pop-up window, 118 00:06:08,460 --> 00:06:09,570 I need to log in. 119 00:06:09,570 --> 00:06:11,790 Log in using file protocol. 120 00:06:11,790 --> 00:06:15,363 File protocol might be SFTP or SCP. 121 00:06:16,200 --> 00:06:18,000 Other protocols are supported as well, 122 00:06:18,000 --> 00:06:20,880 like WebDAV and Amazon S3. 123 00:06:20,880 --> 00:06:21,780 That's just what I want. 124 00:06:21,780 --> 00:06:25,050 I just want to show you SCP, secure copy. 125 00:06:25,050 --> 00:06:27,990 So this is the Windows alternative for secure copy. 126 00:06:27,990 --> 00:06:31,003 And I am using 192.168.29.141 again, 127 00:06:34,230 --> 00:06:38,040 on port number 22, which is the SSH port. 128 00:06:38,040 --> 00:06:40,950 I'm using my very secret user account. 129 00:06:40,950 --> 00:06:43,620 And there we go, Password. 130 00:06:43,620 --> 00:06:47,550 I'm clicking Save because I like saving it. 131 00:06:47,550 --> 00:06:51,900 And oop, and next I'm clicking Login. 132 00:06:51,900 --> 00:06:54,300 Now first time you connect using SSH, 133 00:06:54,300 --> 00:06:59,280 WinSCP is receiving the SSH key fingerprint 134 00:06:59,280 --> 00:07:02,940 of the remote host, and you want to accept it. 135 00:07:02,940 --> 00:07:03,773 There we go. 136 00:07:03,773 --> 00:07:06,150 Then it's asking for the Password, 137 00:07:06,150 --> 00:07:08,400 and I am entering my Password. 138 00:07:08,400 --> 00:07:11,610 And after entering the Password, this is what we see. 139 00:07:11,610 --> 00:07:13,770 So this is the Windows directory on the left, 140 00:07:13,770 --> 00:07:16,530 and on the right we have the Linux directory, 141 00:07:16,530 --> 00:07:18,180 and guess what? 142 00:07:18,180 --> 00:07:23,180 You can just copy/paste files by using drag and drop. 143 00:07:24,480 --> 00:07:25,923 So there we go. 144 00:07:27,300 --> 00:07:30,120 The transfer is completed, and as you can see, 145 00:07:30,120 --> 00:07:33,420 my file1 has been copied from the Windows machine 146 00:07:33,420 --> 00:07:35,070 to the Linux machine. 147 00:07:35,070 --> 00:07:36,633 WinSCP, MobaXterm. 148 00:07:36,633 --> 00:07:38,700 That is really what you want to install 149 00:07:38,700 --> 00:07:40,320 on your Windows computer 150 00:07:40,320 --> 00:07:43,533 to make working with Linux a lot easier.