Work Around Method
August 23rd, 2014 Imran Uddin81 Comments
Placing adsense ads in middle of all the posts will give a high CTR which eventually increases earnings. In word press, There are customized plugins available for placing ads in middle of the posts. But in case of blogger it is some what tricky part to place adsense ads in middle of all the posts. We have developed a script which can place adsense ads in between the post exactly in the middle of the content. The procedure for placing adsense ads in middle of the posts in blogger is shared below.
Place Adsense Ads Automatically In Middle of All The Posts In Blogger:
Follow The below process to place adsense ads in Middle of all the posts automatically in blogger.
Step 1:
Login to Your Blogger Account
Go to Template >Edit HTML
Step 2:
Search For Below Code in your template.
Sarili mong SSH Tunneling Server (Tutorial Series)
1. Ano ang SSH o Secure Shell? Malawakang term ito kapatid, kung ang nasa isip mo lang ay ang host, user, pass and port na ilalagay mo para masulit ang promo mo, mali ka, there is so much more to this. Ang tunneling ay isa lang sa mga powers ni SSH. Okay game isa-isahin natin.
a. Remote Console. Ang primary objective kung bakit may SSH ay para ma-manage mo securely ang server mo mula sa remote location. So every time ka nage-execute ng command sa SSH Client mo it is as-if may monitor ang server mo at nandun ka nage-execute. Note: Kung hindi mo pa nahahalata, lahat ng naunang tutorial about sa pagi-install natin ng services ay na-accomplish natin through SSH Remote Console. Balik tayo, if that is the case na parang andun ka mismo sa server mo nage-excute, then we need also to be cautious dahil (1) Your account is actually a system User Account, and (2) kung dahil sa sobra mong pilantropo pinamigay mo ang Root User Account mo, magpray kana na good boy ang pinag-bigyan mo (at hindi si Crayon Shin-Chan, hahaha! Hoy Carmen, delete ko na account mo ha, mabagal na net saken eh, hahaha!)
WARNING: Let me emphasize and stress this. DON'T SHARE YOUR ROOT ACCOUNT to anybody.
(Well, except sa nililigawan mong nerd, ano nalang naman ang ROOT diba, hindi ka naman halaman o puno, ang need mo HEART nya, hahaha!)
b. Secure File Transfer. Yes you've read it right, may feature sya na magtransfer ng file between server and client. Kung galing ka sa OpenVPN Tutorial, you have experienced this feature.
c. X11 Forwarding. Hindi na siguro ito dapat i-mention pero ang cool kasi nito. Kasi kung may UI ang ira-run mo na program sa ssh console mo, mag pa-pop-up yung UI ng actual program sa screen mo. How cool diba?! Run mo sa ssh console mo "firefox" ng server tapos lalabas sa client pc mo. Google nalang ito ha for more infos para hindi humaba.
d. Secure Tunneling. Ayan na kaPHC! Haha! Ito na paburito mong katambalan ng promo mo. No need to explain na ito.
e. Port Forwarding, Secure Copy, etc. Hindi na ito related masyado sa topic. Pero please google it lalo na kung linux user ka, dapat alam mo ang mga powers na ito.
2. Eto na gawa tayo ng SSH Tunneling Server. Pero konting intro at side notes lang muna. Gusto ko sabihin muna na kapag bumili ka ng VPS mo ay may installed na yan na SSH Service.
Note: Clarification lang po regarding confusions:
"Bakit sa Windows ka nagiinstall, tapos MobaXterm gamit mo, mas ok Linux libre pa."
Hindi tayo nagiinstall ng Proxy/SSH/Shadowsocks/OpenVPN sa MobaXterm. SSH Client ang MobaXterm, gamit natin ito para maka-remote install tayo sa VPS natin. And maraming free features ang MobaXterm, you don't need to buy it. And yes, marunong po ako sa Putty at sa Bitvise, pero ayaw ko na maintimidate mga kaPHC natin na newbie pero willing matuto, honestly ang cool tignan ni MobaXterm, hindi ka matatakot kung baguhan ka. And yes bossing linux masters, I have used linux for 14 years, hindi man ako master pero may alam ako at willing ako i-share sa hindi marunong. Sila po ang target audience ko. Kung may ituturo kayo sa akin well, advanced thank you. I'm an open book, write on me masters! :)
NoLogin Users. Ito ang need mo kung gusto mo ishare ang tunneling powers ng server mo. Para safe ka na hindi nila accidentally makakalikot ng hindi dapat. Easy lang ito kaPHC, wag matakot:
As usual open natin an MobaXterm, start natin ang session ng VPS natin, and Cut/Paste/Hit-Enter all the way lang sa tutorials. First command mga kapatid:
====================================
# adduser [username]
====================================
Ipalit mo sa "[username]" ang username na gusto mo. For this tutorial gagamitin ko ang username na "kaphcuser" kaya ang command na ilalagay ko ay: "adduser kaphcuser" tulad ng nasa screenshot:
![[IMG]](https://preview.ibb.co/gvvynF/1.jpg)
Then lagyan natin ng password yung user na nilagay mo, same din ipalit lang ang napili mong name sa user ha.
====================================
# passwd [username]
====================================
Itong example screenshot makikita mo na pinalitan ko ang "[username]" ng "kaphcuser" .
![[IMG]](https://preview.ibb.co/gW6FZv/2.jpg)
Then add password... Ito ba nakita mo?
![[IMG]](https://preview.ibb.co/mC3jSF/3.jpg)
Yes po istrikto talaga ito by default. (Eh, bakit sa mga nagbibigay ng free ssh acct for 5-7 days kahit ano pwede? Modified na nila yun, for the sake of simplicity, tyaga ka muna dito ha. Pag linux addict ka na sa future ikaw na mismo ang makakadiskubre nyan. I don't want na ma-spoil ko yung thrill.) From the screenshot: Bawal (1) No Password, (2) Same user and pass, (3) Less than 8 character, and (4) Bawal ang "12345678", "abcdefgh" or any dictionary word. Sige angal ka, ilabas mo sama ng loob mo, tapos ka na? It's for your own safety baby. Hahaha!
Yun oh! Wag mo kalimutan password ha, hehe.
![[IMG]](https://preview.ibb.co/i1gFZv/4.jpg)
Oops! Wag muna atat, hindi pa yan fully secured. Need natin gawin member si user ng "NOLOGIN" para wala syan access sa Remote Console:
====================================
# usermod -s /sbin/nologin [username]
====================================
You know the drill with the username.
![[IMG]](https://preview.ibb.co/cGY7ga/5.jpg)
Alright! Time to test kung NOLOGIN na si user.
Close natin ang session, Right-Click sa session shortcut para lumabas ang menu. Then click "Edit session".
![[IMG]](https://preview.ibb.co/iBZV1a/6.jpg)
Dadalhin tayo ulit sa Session Settings, click natin yung User Icon.
![[IMG]](https://preview.ibb.co/doGM7F/7.jpg)
Click "New"
![[IMG]](https://preview.ibb.co/dTPkZv/8.jpg)
Punan na natin ang fields. Bigyan mo ng Name (sa akin nilagay ko "kaphcnologin"). Then yung Username na ginawa mo kanina, then yung Password mo na hindi mo nakalimutan (sana, hahaha!). Then OK, then OK. Wow! Ok na ok to.
![[IMG]](https://preview.ibb.co/draESF/9.jpg)
Palitan mo user, then ok ulit:
![[IMG]](https://preview.ibb.co/mz1onF/10.jpg)
Ok sige, start na natin session:
![[IMG]](https://preview.ibb.co/gN0QZv/11.jpg)
Makikita natin na connected sya pero "This account is currently not available." daw. Bakit? Kasi NO-LOGIN nga sa console. Pero wag magalala naka login ka parin sa tunnel.
Congrats! Marunong ka na gumawa ng SSH Tunneling Users. I'm proud of you! Lupet mo chong, lumi-level na si panget! Hahaha! You will get multiple codes similar to above code. You have to select the second code which is similar to above code in order to make the script work properly. Step 3: Replace The above Code With The Below Code.
1. Ano ang SSH o Secure Shell? Malawakang term ito kapatid, kung ang nasa isip mo lang ay ang host, user, pass and port na ilalagay mo para masulit ang promo mo, mali ka, there is so much more to this. Ang tunneling ay isa lang sa mga powers ni SSH. Okay game isa-isahin natin.
a. Remote Console. Ang primary objective kung bakit may SSH ay para ma-manage mo securely ang server mo mula sa remote location. So every time ka nage-execute ng command sa SSH Client mo it is as-if may monitor ang server mo at nandun ka nage-execute. Note: Kung hindi mo pa nahahalata, lahat ng naunang tutorial about sa pagi-install natin ng services ay na-accomplish natin through SSH Remote Console. Balik tayo, if that is the case na parang andun ka mismo sa server mo nage-excute, then we need also to be cautious dahil (1) Your account is actually a system User Account, and (2) kung dahil sa sobra mong pilantropo pinamigay mo ang Root User Account mo, magpray kana na good boy ang pinag-bigyan mo (at hindi si Crayon Shin-Chan, hahaha! Hoy Carmen, delete ko na account mo ha, mabagal na net saken eh, hahaha!)
WARNING: Let me emphasize and stress this. DON'T SHARE YOUR ROOT ACCOUNT to anybody.
(Well, except sa nililigawan mong nerd, ano nalang naman ang ROOT diba, hindi ka naman halaman o puno, ang need mo HEART nya, hahaha!)
b. Secure File Transfer. Yes you've read it right, may feature sya na magtransfer ng file between server and client. Kung galing ka sa OpenVPN Tutorial, you have experienced this feature.
c. X11 Forwarding. Hindi na siguro ito dapat i-mention pero ang cool kasi nito. Kasi kung may UI ang ira-run mo na program sa ssh console mo, mag pa-pop-up yung UI ng actual program sa screen mo. How cool diba?! Run mo sa ssh console mo "firefox" ng server tapos lalabas sa client pc mo. Google nalang ito ha for more infos para hindi humaba.
d. Secure Tunneling. Ayan na kaPHC! Haha! Ito na paburito mong katambalan ng promo mo. No need to explain na ito.
e. Port Forwarding, Secure Copy, etc. Hindi na ito related masyado sa topic. Pero please google it lalo na kung linux user ka, dapat alam mo ang mga powers na ito.
2. Eto na gawa tayo ng SSH Tunneling Server. Pero konting intro at side notes lang muna. Gusto ko sabihin muna na kapag bumili ka ng VPS mo ay may installed na yan na SSH Service.
Note: Clarification lang po regarding confusions:
"Bakit sa Windows ka nagiinstall, tapos MobaXterm gamit mo, mas ok Linux libre pa."
Hindi tayo nagiinstall ng Proxy/SSH/Shadowsocks/OpenVPN sa MobaXterm. SSH Client ang MobaXterm, gamit natin ito para maka-remote install tayo sa VPS natin. And maraming free features ang MobaXterm, you don't need to buy it. And yes, marunong po ako sa Putty at sa Bitvise, pero ayaw ko na maintimidate mga kaPHC natin na newbie pero willing matuto, honestly ang cool tignan ni MobaXterm, hindi ka matatakot kung baguhan ka. And yes bossing linux masters, I have used linux for 14 years, hindi man ako master pero may alam ako at willing ako i-share sa hindi marunong. Sila po ang target audience ko. Kung may ituturo kayo sa akin well, advanced thank you. I'm an open book, write on me masters! :)
NoLogin Users. Ito ang need mo kung gusto mo ishare ang tunneling powers ng server mo. Para safe ka na hindi nila accidentally makakalikot ng hindi dapat. Easy lang ito kaPHC, wag matakot:
As usual open natin an MobaXterm, start natin ang session ng VPS natin, and Cut/Paste/Hit-Enter all the way lang sa tutorials. First command mga kapatid:
====================================
# adduser [username]
====================================
Ipalit mo sa "[username]" ang username na gusto mo. For this tutorial gagamitin ko ang username na "kaphcuser" kaya ang command na ilalagay ko ay: "adduser kaphcuser" tulad ng nasa screenshot:
![[IMG]](https://preview.ibb.co/gvvynF/1.jpg)
Then lagyan natin ng password yung user na nilagay mo, same din ipalit lang ang napili mong name sa user ha.
====================================
# passwd [username]
====================================
Itong example screenshot makikita mo na pinalitan ko ang "[username]" ng "kaphcuser" .
![[IMG]](https://preview.ibb.co/gW6FZv/2.jpg)
Then add password... Ito ba nakita mo?
![[IMG]](https://preview.ibb.co/mC3jSF/3.jpg)
Yes po istrikto talaga ito by default. (Eh, bakit sa mga nagbibigay ng free ssh acct for 5-7 days kahit ano pwede? Modified na nila yun, for the sake of simplicity, tyaga ka muna dito ha. Pag linux addict ka na sa future ikaw na mismo ang makakadiskubre nyan. I don't want na ma-spoil ko yung thrill.) From the screenshot: Bawal (1) No Password, (2) Same user and pass, (3) Less than 8 character, and (4) Bawal ang "12345678", "abcdefgh" or any dictionary word. Sige angal ka, ilabas mo sama ng loob mo, tapos ka na? It's for your own safety baby. Hahaha!
Yun oh! Wag mo kalimutan password ha, hehe.
![[IMG]](https://preview.ibb.co/i1gFZv/4.jpg)
Oops! Wag muna atat, hindi pa yan fully secured. Need natin gawin member si user ng "NOLOGIN" para wala syan access sa Remote Console:
====================================
# usermod -s /sbin/nologin [username]
====================================
You know the drill with the username.
![[IMG]](https://preview.ibb.co/cGY7ga/5.jpg)
Alright! Time to test kung NOLOGIN na si user.
Close natin ang session, Right-Click sa session shortcut para lumabas ang menu. Then click "Edit session".
![[IMG]](https://preview.ibb.co/iBZV1a/6.jpg)
Dadalhin tayo ulit sa Session Settings, click natin yung User Icon.
![[IMG]](https://preview.ibb.co/doGM7F/7.jpg)
Click "New"
![[IMG]](https://preview.ibb.co/dTPkZv/8.jpg)
Punan na natin ang fields. Bigyan mo ng Name (sa akin nilagay ko "kaphcnologin"). Then yung Username na ginawa mo kanina, then yung Password mo na hindi mo nakalimutan (sana, hahaha!). Then OK, then OK. Wow! Ok na ok to.
![[IMG]](https://preview.ibb.co/draESF/9.jpg)
Palitan mo user, then ok ulit:
![[IMG]](https://preview.ibb.co/mz1onF/10.jpg)
Ok sige, start na natin session:
![[IMG]](https://preview.ibb.co/gN0QZv/11.jpg)
Makikita natin na connected sya pero "This account is currently not available." daw. Bakit? Kasi NO-LOGIN nga sa console. Pero wag magalala naka login ka parin sa tunnel.
Congrats! Marunong ka na gumawa ng SSH Tunneling Users. I'm proud of you! Lupet mo chong, lumi-level na si panget! Hahaha! You will get multiple codes similar to above code. You have to select the second code which is similar to above code in order to make the script work properly. Step 3: Replace The above Code With The Below Code.
Sarili mong SSH Tunneling Server (Tutorial Series)
1. Ano ang SSH o Secure Shell? Malawakang term ito kapatid, kung ang nasa isip mo lang ay ang host, user, pass and port na ilalagay mo para masulit ang promo mo, mali ka, there is so much more to this. Ang tunneling ay isa lang sa mga powers ni SSH. Okay game isa-isahin natin.
a. Remote Console. Ang primary objective kung bakit may SSH ay para ma-manage mo securely ang server mo mula sa remote location. So every time ka nage-execute ng command sa SSH Client mo it is as-if may monitor ang server mo at nandun ka nage-execute. Note: Kung hindi mo pa nahahalata, lahat ng naunang tutorial about sa pagi-install natin ng services ay na-accomplish natin through SSH Remote Console. Balik tayo, if that is the case na parang andun ka mismo sa server mo nage-excute, then we need also to be cautious dahil (1) Your account is actually a system User Account, and (2) kung dahil sa sobra mong pilantropo pinamigay mo ang Root User Account mo, magpray kana na good boy ang pinag-bigyan mo (at hindi si Crayon Shin-Chan, hahaha! Hoy Carmen, delete ko na account mo ha, mabagal na net saken eh, hahaha!)
WARNING: Let me emphasize and stress this. DON'T SHARE YOUR ROOT ACCOUNT to anybody.
(Well, except sa nililigawan mong nerd, ano nalang naman ang ROOT diba, hindi ka naman halaman o puno, ang need mo HEART nya, hahaha!)
b. Secure File Transfer. Yes you've read it right, may feature sya na magtransfer ng file between server and client. Kung galing ka sa OpenVPN Tutorial, you have experienced this feature.
c. X11 Forwarding. Hindi na siguro ito dapat i-mention pero ang cool kasi nito. Kasi kung may UI ang ira-run mo na program sa ssh console mo, mag pa-pop-up yung UI ng actual program sa screen mo. How cool diba?! Run mo sa ssh console mo "firefox" ng server tapos lalabas sa client pc mo. Google nalang ito ha for more infos para hindi humaba.
d. Secure Tunneling. Ayan na kaPHC! Haha! Ito na paburito mong katambalan ng promo mo. No need to explain na ito.
e. Port Forwarding, Secure Copy, etc. Hindi na ito related masyado sa topic. Pero please google it lalo na kung linux user ka, dapat alam mo ang mga powers na ito.
2. Eto na gawa tayo ng SSH Tunneling Server. Pero konting intro at side notes lang muna. Gusto ko sabihin muna na kapag bumili ka ng VPS mo ay may installed na yan na SSH Service.
Note: Clarification lang po regarding confusions:
"Bakit sa Windows ka nagiinstall, tapos MobaXterm gamit mo, mas ok Linux libre pa."
Hindi tayo nagiinstall ng Proxy/SSH/Shadowsocks/OpenVPN sa MobaXterm. SSH Client ang MobaXterm, gamit natin ito para maka-remote install tayo sa VPS natin. And maraming free features ang MobaXterm, you don't need to buy it. And yes, marunong po ako sa Putty at sa Bitvise, pero ayaw ko na maintimidate mga kaPHC natin na newbie pero willing matuto, honestly ang cool tignan ni MobaXterm, hindi ka matatakot kung baguhan ka. And yes bossing linux masters, I have used linux for 14 years, hindi man ako master pero may alam ako at willing ako i-share sa hindi marunong. Sila po ang target audience ko. Kung may ituturo kayo sa akin well, advanced thank you. I'm an open book, write on me masters! :)
NoLogin Users. Ito ang need mo kung gusto mo ishare ang tunneling powers ng server mo. Para safe ka na hindi nila accidentally makakalikot ng hindi dapat. Easy lang ito kaPHC, wag matakot:
As usual open natin an MobaXterm, start natin ang session ng VPS natin, and Cut/Paste/Hit-Enter all the way lang sa tutorials. First command mga kapatid:
====================================
# adduser [username]
====================================
Ipalit mo sa "[username]" ang username na gusto mo. For this tutorial gagamitin ko ang username na "kaphcuser" kaya ang command na ilalagay ko ay: "adduser kaphcuser" tulad ng nasa screenshot:
![[IMG]](https://preview.ibb.co/gvvynF/1.jpg)
Then lagyan natin ng password yung user na nilagay mo, same din ipalit lang ang napili mong name sa user ha.
====================================
# passwd [username]
====================================
Itong example screenshot makikita mo na pinalitan ko ang "[username]" ng "kaphcuser" .
![[IMG]](https://preview.ibb.co/gW6FZv/2.jpg)
Then add password... Ito ba nakita mo?
![[IMG]](https://preview.ibb.co/mC3jSF/3.jpg)
Yes po istrikto talaga ito by default. (Eh, bakit sa mga nagbibigay ng free ssh acct for 5-7 days kahit ano pwede? Modified na nila yun, for the sake of simplicity, tyaga ka muna dito ha. Pag linux addict ka na sa future ikaw na mismo ang makakadiskubre nyan. I don't want na ma-spoil ko yung thrill.) From the screenshot: Bawal (1) No Password, (2) Same user and pass, (3) Less than 8 character, and (4) Bawal ang "12345678", "abcdefgh" or any dictionary word. Sige angal ka, ilabas mo sama ng loob mo, tapos ka na? It's for your own safety baby. Hahaha!
Yun oh! Wag mo kalimutan password ha, hehe.
![[IMG]](https://preview.ibb.co/i1gFZv/4.jpg)
Oops! Wag muna atat, hindi pa yan fully secured. Need natin gawin member si user ng "NOLOGIN" para wala syan access sa Remote Console:
====================================
# usermod -s /sbin/nologin [username]
====================================
You know the drill with the username.
![[IMG]](https://preview.ibb.co/cGY7ga/5.jpg)
Alright! Time to test kung NOLOGIN na si user.
Close natin ang session, Right-Click sa session shortcut para lumabas ang menu. Then click "Edit session".
![[IMG]](https://preview.ibb.co/iBZV1a/6.jpg)
Dadalhin tayo ulit sa Session Settings, click natin yung User Icon.
![[IMG]](https://preview.ibb.co/doGM7F/7.jpg)
Click "New"
![[IMG]](https://preview.ibb.co/dTPkZv/8.jpg)
Punan na natin ang fields. Bigyan mo ng Name (sa akin nilagay ko "kaphcnologin"). Then yung Username na ginawa mo kanina, then yung Password mo na hindi mo nakalimutan (sana, hahaha!). Then OK, then OK. Wow! Ok na ok to.
![[IMG]](https://preview.ibb.co/draESF/9.jpg)
Palitan mo user, then ok ulit:
![[IMG]](https://preview.ibb.co/mz1onF/10.jpg)
Ok sige, start na natin session:
![[IMG]](https://preview.ibb.co/gN0QZv/11.jpg)
Makikita natin na connected sya pero "This account is currently not available." daw. Bakit? Kasi NO-LOGIN nga sa console. Pero wag magalala naka login ka parin sa tunnel.
Congrats! Marunong ka na gumawa ng SSH Tunneling Users. I'm proud of you! Lupet mo chong, lumi-level na si panget! Hahaha!
1. Ano ang SSH o Secure Shell? Malawakang term ito kapatid, kung ang nasa isip mo lang ay ang host, user, pass and port na ilalagay mo para masulit ang promo mo, mali ka, there is so much more to this. Ang tunneling ay isa lang sa mga powers ni SSH. Okay game isa-isahin natin.
a. Remote Console. Ang primary objective kung bakit may SSH ay para ma-manage mo securely ang server mo mula sa remote location. So every time ka nage-execute ng command sa SSH Client mo it is as-if may monitor ang server mo at nandun ka nage-execute. Note: Kung hindi mo pa nahahalata, lahat ng naunang tutorial about sa pagi-install natin ng services ay na-accomplish natin through SSH Remote Console. Balik tayo, if that is the case na parang andun ka mismo sa server mo nage-excute, then we need also to be cautious dahil (1) Your account is actually a system User Account, and (2) kung dahil sa sobra mong pilantropo pinamigay mo ang Root User Account mo, magpray kana na good boy ang pinag-bigyan mo (at hindi si Crayon Shin-Chan, hahaha! Hoy Carmen, delete ko na account mo ha, mabagal na net saken eh, hahaha!)
WARNING: Let me emphasize and stress this. DON'T SHARE YOUR ROOT ACCOUNT to anybody.
(Well, except sa nililigawan mong nerd, ano nalang naman ang ROOT diba, hindi ka naman halaman o puno, ang need mo HEART nya, hahaha!)
b. Secure File Transfer. Yes you've read it right, may feature sya na magtransfer ng file between server and client. Kung galing ka sa OpenVPN Tutorial, you have experienced this feature.
c. X11 Forwarding. Hindi na siguro ito dapat i-mention pero ang cool kasi nito. Kasi kung may UI ang ira-run mo na program sa ssh console mo, mag pa-pop-up yung UI ng actual program sa screen mo. How cool diba?! Run mo sa ssh console mo "firefox" ng server tapos lalabas sa client pc mo. Google nalang ito ha for more infos para hindi humaba.
d. Secure Tunneling. Ayan na kaPHC! Haha! Ito na paburito mong katambalan ng promo mo. No need to explain na ito.
e. Port Forwarding, Secure Copy, etc. Hindi na ito related masyado sa topic. Pero please google it lalo na kung linux user ka, dapat alam mo ang mga powers na ito.
2. Eto na gawa tayo ng SSH Tunneling Server. Pero konting intro at side notes lang muna. Gusto ko sabihin muna na kapag bumili ka ng VPS mo ay may installed na yan na SSH Service.
Note: Clarification lang po regarding confusions:
"Bakit sa Windows ka nagiinstall, tapos MobaXterm gamit mo, mas ok Linux libre pa."
Hindi tayo nagiinstall ng Proxy/SSH/Shadowsocks/OpenVPN sa MobaXterm. SSH Client ang MobaXterm, gamit natin ito para maka-remote install tayo sa VPS natin. And maraming free features ang MobaXterm, you don't need to buy it. And yes, marunong po ako sa Putty at sa Bitvise, pero ayaw ko na maintimidate mga kaPHC natin na newbie pero willing matuto, honestly ang cool tignan ni MobaXterm, hindi ka matatakot kung baguhan ka. And yes bossing linux masters, I have used linux for 14 years, hindi man ako master pero may alam ako at willing ako i-share sa hindi marunong. Sila po ang target audience ko. Kung may ituturo kayo sa akin well, advanced thank you. I'm an open book, write on me masters! :)
NoLogin Users. Ito ang need mo kung gusto mo ishare ang tunneling powers ng server mo. Para safe ka na hindi nila accidentally makakalikot ng hindi dapat. Easy lang ito kaPHC, wag matakot:
As usual open natin an MobaXterm, start natin ang session ng VPS natin, and Cut/Paste/Hit-Enter all the way lang sa tutorials. First command mga kapatid:
====================================
# adduser [username]
====================================
Ipalit mo sa "[username]" ang username na gusto mo. For this tutorial gagamitin ko ang username na "kaphcuser" kaya ang command na ilalagay ko ay: "adduser kaphcuser" tulad ng nasa screenshot:
![[IMG]](https://preview.ibb.co/gvvynF/1.jpg)
Then lagyan natin ng password yung user na nilagay mo, same din ipalit lang ang napili mong name sa user ha.
====================================
# passwd [username]
====================================
Itong example screenshot makikita mo na pinalitan ko ang "[username]" ng "kaphcuser" .
![[IMG]](https://preview.ibb.co/gW6FZv/2.jpg)
Then add password... Ito ba nakita mo?
![[IMG]](https://preview.ibb.co/mC3jSF/3.jpg)
Yes po istrikto talaga ito by default. (Eh, bakit sa mga nagbibigay ng free ssh acct for 5-7 days kahit ano pwede? Modified na nila yun, for the sake of simplicity, tyaga ka muna dito ha. Pag linux addict ka na sa future ikaw na mismo ang makakadiskubre nyan. I don't want na ma-spoil ko yung thrill.) From the screenshot: Bawal (1) No Password, (2) Same user and pass, (3) Less than 8 character, and (4) Bawal ang "12345678", "abcdefgh" or any dictionary word. Sige angal ka, ilabas mo sama ng loob mo, tapos ka na? It's for your own safety baby. Hahaha!
Yun oh! Wag mo kalimutan password ha, hehe.
![[IMG]](https://preview.ibb.co/i1gFZv/4.jpg)
Oops! Wag muna atat, hindi pa yan fully secured. Need natin gawin member si user ng "NOLOGIN" para wala syan access sa Remote Console:
====================================
# usermod -s /sbin/nologin [username]
====================================
You know the drill with the username.
![[IMG]](https://preview.ibb.co/cGY7ga/5.jpg)
Alright! Time to test kung NOLOGIN na si user.
Close natin ang session, Right-Click sa session shortcut para lumabas ang menu. Then click "Edit session".
![[IMG]](https://preview.ibb.co/iBZV1a/6.jpg)
Dadalhin tayo ulit sa Session Settings, click natin yung User Icon.
![[IMG]](https://preview.ibb.co/doGM7F/7.jpg)
Click "New"
![[IMG]](https://preview.ibb.co/dTPkZv/8.jpg)
Punan na natin ang fields. Bigyan mo ng Name (sa akin nilagay ko "kaphcnologin"). Then yung Username na ginawa mo kanina, then yung Password mo na hindi mo nakalimutan (sana, hahaha!). Then OK, then OK. Wow! Ok na ok to.
![[IMG]](https://preview.ibb.co/draESF/9.jpg)
Palitan mo user, then ok ulit:
![[IMG]](https://preview.ibb.co/mz1onF/10.jpg)
Ok sige, start na natin session:
![[IMG]](https://preview.ibb.co/gN0QZv/11.jpg)
Makikita natin na connected sya pero "This account is currently not available." daw. Bakit? Kasi NO-LOGIN nga sa console. Pero wag magalala naka login ka parin sa tunnel.
Congrats! Marunong ka na gumawa ng SSH Tunneling Users. I'm proud of you! Lupet mo chong, lumi-level na si panget! Hahaha!
No comments:
Post a Comment