Secure your Node-RED with Username and Password in 5 Minutes !!
IoT Frontier
[{'start': '0.400', 'end': '6.160', 'text': 'If you have either followed my previous'}, {'start': '2.639', 'end': '9.559', 'text': 'video on using Enrog to access your Node'}, {'start': '6.160', 'end': '12.480', 'text': 'Red from anywhere or using any other'}, {'start': '9.559', 'end': '15.920', 'text': 'VPN/tunneling tools where your Node Red'}, {'start': '12.480', 'end': '18.560', 'text': 'instance is publicly exposed, then you'}, {'start': '15.920', 'end': '21.199', 'text': 'should not miss this video because you'}, {'start': '18.560', 'end': '23.680', 'text': 'just exposed your entire system to the'}, {'start': '21.199', 'end': '27.279', 'text': 'internet. Without proper security,'}, {'start': '23.680', 'end': '30.640', 'text': 'anyone who finds your enrog URL can'}, {'start': '27.279', 'end': '33.440', 'text': 'access, modify or even delete your'}, {'start': '30.640', 'end': '35.840', 'text': 'flows. Let me show you how to secure'}, {'start': '33.440', 'end': '38.920', 'text': 'your Node Red with password protection'}, {'start': '35.840', 'end': '42.079', 'text': 'in next 5 minutes. Welcome back'}, {'start': '38.920', 'end': '45.280', 'text': 'everyone. My name is Hariharad. In our'}, {'start': '42.079', 'end': '47.520', 'text': 'last video, we saw how to use Enrog to'}, {'start': '45.280', 'end': '50.079', 'text': 'make your Node Red accessible from'}, {'start': '47.520', 'end': '52.800', 'text': 'anywhere. We are going to add username'}, {'start': '50.079', 'end': '55.600', 'text': 'and password authentication to ensure'}, {'start': '52.800', 'end': '58.399', 'text': 'only you can access your dashboard and'}, {'start': '55.600', 'end': '61.440', 'text': 'flows. This is security 101 when'}, {'start': '58.399', 'end': '64.479', 'text': 'exposing any service to the internet. So'}, {'start': '61.440', 'end': '66.920', 'text': "let's get started right away. First I'll"}, {'start': '64.479', 'end': '70.560', 'text': 'stop this node red'}, {'start': '66.920', 'end': '74.439', 'text': "flow by using Ctrl C and then I'll show"}, {'start': '70.560', 'end': '78.799', 'text': 'you by starting the node'}, {'start': '74.439', 'end': '80.799', 'text': 'red and opening local host. So now you'}, {'start': '78.799', 'end': '86.080', 'text': 'can see without any authentication it'}, {'start': '80.799', 'end': '86.080', 'text': "has opened and I'll also start the"}, {'start': '87.159', 'end': '91.759', 'text': 'enro. So you have this'}, {'start': '92.200', 'end': '98.799', 'text': 'URL. This URL you need to paste and see'}, {'start': '96.000', 'end': '98.799', 'text': 'how it will be'}, {'start': '99.640', 'end': '104.759', 'text': 'opening. So it has directly loaded'}, {'start': '103.040', 'end': '107.040', 'text': 'without any'}, {'start': '104.759', 'end': '111.000', 'text': 'authentication. So now what we need to'}, {'start': '107.040', 'end': '113.159', 'text': 'do is you need to locate a settings.js'}, {'start': '111.000', 'end': '117.159', 'text': "file. I'll give"}, {'start': '113.159', 'end': '121.040', 'text': 'you that location. So open your'}, {'start': '117.159', 'end': '125.040', 'text': 'run. So inside run you need to paste'}, {'start': '121.040', 'end': '126.920', 'text': 'this command that is user profile dot'}, {'start': '125.040', 'end': '129.679', 'text': 'node red'}, {'start': '126.920', 'end': '133.200', 'text': 'settings.js and it will ask you to open'}, {'start': '129.679', 'end': '135.640', 'text': 'any of the editor. So now I opened'}, {'start': '133.200', 'end': '140.239', 'text': 'visual studio code. You can even use'}, {'start': '135.640', 'end': '140.239', 'text': 'notepad. So here you need to find'}, {'start': '140.840', 'end': '147.360', 'text': 'authentication. So you can see admin o.'}, {'start': '144.640', 'end': '149.040', 'text': 'So this is right now as a commented'}, {'start': '147.360', 'end': '151.920', 'text': 'block. So next thing that you need to do'}, {'start': '149.040', 'end': '154.480', 'text': 'is you know the username can be admin'}, {'start': '151.920', 'end': '157.760', 'text': 'but the password you need to provide a'}, {'start': '154.480', 'end': '162.160', 'text': 'hash here. So to provide the hash here'}, {'start': '157.760', 'end': '167.160', 'text': 'you need to open another command prompt.'}, {'start': '162.160', 'end': '171.040', 'text': 'So in this command prompt you need to'}, {'start': '167.160', 'end': '175.200', 'text': 'mention another command node dread. So'}, {'start': '171.040', 'end': '179.040', 'text': 'for this admin you need to provide hash.'}, {'start': '175.200', 'end': '182.080', 'text': 'So you need to use this hash pw command'}, {'start': '179.040', 'end': '184.920', 'text': 'to generate a hash. So it will ask you'}, {'start': '182.080', 'end': '187.640', 'text': 'to provide a'}, {'start': '184.920', 'end': '192.760', 'text': 'password. So I have typed a'}, {'start': '187.640', 'end': '192.760', 'text': 'password and it has given me hash.'}, {'start': '192.879', 'end': '198.879', 'text': "So now I'll copy this hash and paste it"}, {'start': '200.360', 'end': '205.360', 'text': 'inside'}, {'start': '201.959', 'end': '210.000', 'text': 'here. So once you have pasted you can'}, {'start': '205.360', 'end': '212.599', 'text': 'even uncomment this by control slash. So'}, {'start': '210.000', 'end': '217.840', 'text': 'now I have unccommented these'}, {'start': '212.599', 'end': '222.080', 'text': "credentials and I'll save this file."}, {'start': '217.840', 'end': '222.080', 'text': 'So you need to restart your node'}, {'start': '223.480', 'end': '229.000', 'text': "red. So I'll just stop this and restart"}, {'start': '226.560', 'end': '232.159', 'text': 'the node'}, {'start': '229.000', 'end': '235.879', 'text': 'red. And here immediately it is asking'}, {'start': '232.159', 'end': '239.799', 'text': 'me the username, password without even'}, {'start': '235.879', 'end': '243.760', 'text': "refresh. So I'll give the username and"}, {'start': '239.799', 'end': '247.439', 'text': 'password and it has logged in.'}, {'start': '243.760', 'end': '251.670', 'text': "Same way I'll open here in enrog. Here"}, {'start': '247.439', 'end': '255.000', 'text': 'also it is asking same username and'}, {'start': '251.670', 'end': '258.479', 'text': '[Music]'}, {'start': '255.000', 'end': '260.199', 'text': 'password and then after refreshing it is'}, {'start': '258.479', 'end': '263.199', 'text': 'able to log'}, {'start': '260.199', 'end': '266.639', 'text': 'in. So if I want to log out and then'}, {'start': '263.199', 'end': '271.479', 'text': 'show you again. So I can log out and'}, {'start': '266.639', 'end': '271.479', 'text': 'then click on username and password.'}, {'start': '271.680', 'end': '277.040', 'text': 'You can also see this kind of approach.'}, {'start': '275.120', 'end': '280.120', 'text': "And that's it. Your Node Red"}, {'start': '277.040', 'end': '282.560', 'text': 'installation is now protected with basic'}, {'start': '280.120', 'end': '285.040', 'text': 'authentication even when accessed'}, {'start': '282.560', 'end': '287.960', 'text': 'through Enrow. This is absolutely'}, {'start': '285.040', 'end': '291.280', 'text': 'essential when exposing services to the'}, {'start': '287.960', 'end': '293.919', 'text': 'internet. Remember this is just a basic'}, {'start': '291.280', 'end': '297.240', 'text': 'security. For even better protection,'}, {'start': '293.919', 'end': '300.240', 'text': 'consider setting up HTTPS IP'}, {'start': '297.240', 'end': '302.639', 'text': 'restrictions in Enrog and regularly'}, {'start': '300.240', 'end': '304.960', 'text': 'changing your password. If you found'}, {'start': '302.639', 'end': '307.199', 'text': 'this video informative, please type'}, {'start': '304.960', 'end': '309.759', 'text': 'helpful in the comment section below and'}, {'start': '307.199', 'end': '312.560', 'text': 'smash that like button. Check out my'}, {'start': '309.759', 'end': '315.039', 'text': 'other Node Red tutorials by clicking on'}, {'start': '312.560', 'end': '317.280', 'text': 'the top right corner or in the end'}, {'start': '315.039', 'end': '319.680', 'text': 'screen. Your support means a lot to us'}, {'start': '317.280', 'end': '322.080', 'text': 'and helps us keep creating more content'}, {'start': '319.680', 'end': '324.960', 'text': 'like this. So, please subscribe to the'}, {'start': '322.080', 'end': '327.360', 'text': 'channel and hit the bell icon. Thank you'}, {'start': '324.960', 'end': '330.919', 'text': "for watching and I'll see you in another"}, {'start': '327.360', 'end': '330.919', 'text': 'interesting video.'}]