Тёмный
CodeWrecks
CodeWrecks
CodeWrecks
Подписаться
A place to store all my webcast on technologies that I use everyday and I want to share with others.
Semantic Kernel - how to use HandleBars plans
12:49
5 месяцев назад
An introduction to LangChain
15:27
5 месяцев назад
I bought ONE youbikey only - Now What?
12:24
6 месяцев назад
Комментарии
@RespawnRoyalty
@RespawnRoyalty День назад
Wait, so? it's creating a script to create a script?! :D
@shawnmarthaoakley6129
@shawnmarthaoakley6129 2 дня назад
Just got 2 Yubikey 5 for myself and 2 for my wife. Your videos are a lifesaver... I will be able to use YKMAN CLI now, to set up discoverable creds on important accounts. Your videos are the first clear, thorough tutorials I've found. Those by Yubico are too vague. Thank you! 😃btw: I would love to see a tutorial on use of Yubikey 5: PIV on Mac OS (please consider doing that) and again many thanks.
@codewrecks
@codewrecks 20 часов назад
Actually I've a Macbook air M1, so I can try to register something on Mac OS.
@actupatou
@actupatou 5 дней назад
Yes, I can configure my browser from my google account to kill everything Login cookies when I close the computer browser and log in again to my google account with the Yubikey key. But how to do the same on an Android mobile? thanks
@codewrecks
@codewrecks 3 дня назад
You can use a browser like Firefox focus
@ElwoodBlues48
@ElwoodBlues48 8 дней назад
Good video explaining how these Yubikeys work. I have been using the same Pin for windows and the Yubikey and this has been very confusing. How can you change the Pin on the Yubikey?
@codewrecks
@codewrecks 7 дней назад
You can download and install yubikey manager, www.yubico.com/support/download/yubikey-manager/
@AV8R767
@AV8R767 18 дней назад
This is why you need two keys. You also need the account reset codes for your accounts so you can access.
@codewrecks
@codewrecks 16 дней назад
Having the ability to reset the account is always a good thing, but you need to keep those codes really secure. Actually i have 4 keys registered for all of my important accounts, one key is in a safe place in the house. :)
@belalsalas7266
@belalsalas7266 20 дней назад
Does it work on Mac? I see smart cards option but I can't see WebAuth option on RD app from Microsoft on Mac?
@codewrecks
@codewrecks 20 дней назад
I'm not a mac user, but sadly enough I've tried with standard RDP client by Microsoft on a Macbooc Air M1 and it does not work, even if you have the option to share the smar card, something seems just not to work and when you try using the key you got an error. I've read online that someone got it to work with other RDP client, but honestly I never tried. I'll investigate
@davidtheprogrammer
@davidtheprogrammer 23 дня назад
Would've been nice to have the registration flow setup
@codewrecks
@codewrecks 21 день назад
I need to install latest version and update the video. I suspect that it can be old now...
@casual_sky2
@casual_sky2 20 дней назад
That would be amazing ​@@codewrecks. Please do so
@kenlau4649
@kenlau4649 23 дня назад
Great content, real life use case.
@bitbreaker79
@bitbreaker79 23 дня назад
Nice video! Clear in your explanation (as usual) ... I'm looking forward tinkering on it once I got a decent PC with enough RAM and GPU.
@codewrecks
@codewrecks 22 дня назад
Just try with online services :), OpenAI / Cohere, etc. Also local embedding models really need small GPU to run on decent speed, they are really small compared to an LLM.
@iAppreciateUnow
@iAppreciateUnow 26 дней назад
Thank you for the information. Do we need to activate the PIV along with the PIN?
@codewrecks
@codewrecks 26 дней назад
No it is not needed.
@iAppreciateUnow
@iAppreciateUnow 26 дней назад
Thank you
@bastabey2652
@bastabey2652 27 дней назад
excellent simplified presentation regarding embeddings.. thanks for posting
@codewrecks
@codewrecks 26 дней назад
Glad it was helpful!
@bastabey2652
@bastabey2652 29 дней назад
the built in grounding feature of Cohere Command R/R+ models is unique to Cohere.. thanks for the informative video
@robsonpaulo848
@robsonpaulo848 Месяц назад
The best. Thanks
@computerguy1893
@computerguy1893 Месяц назад
Can you do it on local windows 10, 11 machines that's only on local lan and not on azure ?
@codewrecks
@codewrecks Месяц назад
The result is the very same, RDP works the same in both w10 and 11 regarding yubi and the location does not matter
@computerguy1893
@computerguy1893 Месяц назад
@@codewrecks Yes I guess it works on baremetal. Have you tried it on VM host like on XCP-ng where you have to passthrough the Yubikey ?
@codewrecks
@codewrecks Месяц назад
It does not depend on virtualization system, remote desktop protocol is part of windows and does not care if the machine you are connecting to is on bare metal, hyper-v, ESxI or whathever.
@AlexanderMatosOlivo
@AlexanderMatosOlivo Месяц назад
This procedure is no longer functional, keycloak is not stored on docker hub any more and the docker run command return an error
@codewrecks
@codewrecks Месяц назад
The video is really old, if I had time I'll try to find another image suitable for such a scenario
@ivorbiggen9599
@ivorbiggen9599 Месяц назад
Thank you for all the yubikey video’s, very helpful, nice to hear you accent reminds me of my mamma. Regards Francò
@codewrecks
@codewrecks Месяц назад
Glad you like them!
@Mohit-xl5qu
@Mohit-xl5qu Месяц назад
thanks a lot
@niklaswe2686
@niklaswe2686 Месяц назад
Nice Tutorial. Keep up the good work👍 could you do a Video where you are on another machine or another one’s computer and the process of using your key there? I still don‘t understand if I have to Transfer the public key manually to the machine I‘m connecting from before connecting…
@codewrecks
@codewrecks Месяц назад
You need to copy the shim private key, but if you create a resident key, you just need your yubikey. You use the command line utility to extract the key. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-jYb7l7mbhLM.htmlsi=CaecHRQoAMyyGFLi
@dracoreeper
@dracoreeper Месяц назад
what about blocking it entirely for front end users and only accessing it with a vpn? been running into some issues with this.
@codewrecks
@codewrecks Месяц назад
If you want to let your user log in only on VPN it should be possible, but never tried honestly
@craconia
@craconia Месяц назад
Hey Gian! Your Yubikey playlist has been incredibly helpful-I've learned a lot! Thanks for creating it. Just a quick note: in the video, you mentioned the SSH Private key as a "reference," but it's actually the genuine PRIVATE KEY encrypted with the Yubikey's master key. Also, the SSH Private key isn't stored in the Yubikey; instead, the Yubikey decrypts it when you connect. I noticed this distinction after watching your follow-up videos on resident keys. Adding a note in the description could clarify this for future viewers. Thanks for your great content!
@codewrecks
@codewrecks Месяц назад
Thanks, following official documentation (developers.yubico.com/SSH/Securing_SSH_with_FIDO2.html) the private key should be stored inside the key. … The first file, id_ecdsa_sk, contains a reference to the private key credential stored on the YubiKey. The second file ,id_ecdsa_sk.pub, contains the public key
@user-jq3nr1kn6h
@user-jq3nr1kn6h Месяц назад
Can you explain why the keys don't work well with iphones? I had an iphone se and a Yubikey with NFC, but it never worked with the phone. Now I have an iphone 15, which allows me to put the Yubkiey directly into the usb-c port, but the keys are still not working! I tried logging into my email and it said "no credentials found," but the keys work fine on my laptop.
@codewrecks
@codewrecks Месяц назад
I do not own an iPhone, so I cannot test, but it should work. On android I had problem with browser different from Chrome in the past, but with Chrome I had no problem. Which service are you trying to use the yubi with?
@user-jq3nr1kn6h
@user-jq3nr1kn6h Месяц назад
@@codewrecks I think it's called webauthen. Not the TOTP or passkey. I still use a password and then use the key after entering the password. I know the key is properly added to my accounts because I have no problem with a laptop.
@codewrecks
@codewrecks Месяц назад
In android I had problems using browsers different from Chrome, but on iPhone official documentation states that it should just work support.apple.com/it-it/102637 . Which service are you using? Google, Microsoft, or it does not work with any service?
@computerguy1893
@computerguy1893 Месяц назад
If you use "Aegis" available ONLY for android. You can backup all the TOTP you don't have to save the QR Code as backup
@computerguy1893
@computerguy1893 Месяц назад
Good tutorial but not working for me. When I go to my new computer and do "ssh-keygen -K" it says "Cannot download keys without provider". What am I missing ?
@computerguy1893
@computerguy1893 Месяц назад
I was using wrong version of openssh. After upgrading to latest beta it worked
@codewrecks
@codewrecks Месяц назад
Have you upgraded to the latest ssh version?
@ElwoodBlues48
@ElwoodBlues48 Месяц назад
Is the PIN from windows or is it set on the Yubikey?
@codewrecks
@codewrecks Месяц назад
Is on the yubikey.
@sscoder170
@sscoder170 Месяц назад
unable to find previous video
@codewrecks
@codewrecks Месяц назад
Sorry, I've updated the description. Here is the link ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-zQcBIsmwuTw.html
@alexanderclara3406
@alexanderclara3406 Месяц назад
Thank u very much. Works great. But i have 2 questions Can i use it also in Putty? I have 3 Yubikeys. How can i configure it that my Clients (2x Laptops/1x Desktop) can use all 3 yubikeys? Maybe u can help me/us Thank u.
@codewrecks
@codewrecks Месяц назад
Actually you can use your keys on any computer you want. When you first create the SSH key you get a private key (that is only a SHIM key that points to the right physical key). You can copy that private key on any computer you want. You can also create resident key, where you can extract the SHIM key with command line tool. I do not use putty from long time but from official documentation it seems that it has no problem with your yubi: developers.yubico.com/PGP/SSH_authentication/Windows.html
@rhd2qYT
@rhd2qYT Месяц назад
Wonderful video. I just got my YubiKey and watched your other video for first time users. In this video at 1:22 the Google Prompt asks for the Security Key Password. Do I enter the FIDO Pin that I created? Thanks.
@codewrecks
@codewrecks Месяц назад
Yes when some site / software is using your YubiKey to perform authentication (not 2nd factor, but using the key as sole factor of authentication) it ask you for the pin. If you got wrong for 8 times credentials inside the key are lost forever.
@theycallmetoast
@theycallmetoast Месяц назад
I would love to know if this still works for you because as of the last month, I am not able to download any of the files, or zips that GPT creates for me. Hope it still works, thanks!
@codewrecks
@codewrecks Месяц назад
I’ve not renewed my plus in latest two months, so I didn’t try again
@theycallmetoast
@theycallmetoast Месяц назад
@@codewrecks I figured it out on my side, it was entirely my fault, though something I think many will encounter. If you have a popupblocker or AdBlock, both of those will block the download link from executing. I guess it is just the function being used by GPT triggers the plugins to false flag the file. I've reported it to the popupblocker and AdBlock devs.
@anmolsachan2046
@anmolsachan2046 Месяц назад
Error programing device- Error in configure_yubikey_challenge_response_for_user:00010009 This error is showing Please help to solve this
@codewrecks
@codewrecks Месяц назад
Which environment/OS? Honestly never saw this error before.
@anmolsachan2046
@anmolsachan2046 Месяц назад
Windows 10
@anmolsachan2046
@anmolsachan2046 Месяц назад
I want to use yubikey for login in windows but this error is showing!!
@codewrecks
@codewrecks Месяц назад
Using key to login in Windows 10 is a thing that I never got it right for a computer that is not connected to Azure Active Directory. The reason is that for a local account you can always enter with your password, and I had also problem in configuring in a couple of computer with windows hello :(. Actually I gave up trying to use it to log on my windows 10 .
@KodakYarr
@KodakYarr 2 месяца назад
The challenge phrase A1B2C3 is not to verify that you are really infront of the computer. It is to make sure that you are actually entering the code you think you are. For example if you have the wrong keyboard layout without realizing.
@codewrecks
@codewrecks 2 месяца назад
Thanks, I really got it wrong in the video.
@rogerchandler9737
@rogerchandler9737 2 месяца назад
Good stuff!
@henriquebueno4672
@henriquebueno4672 2 месяца назад
Hello, I Can't use that because Show a error on my Python... U know how are the Intall library I need do? to this function: semantic_kernel.skill_definition
@codewrecks
@codewrecks 2 месяца назад
In the repository you should find requirements.txt files that contains all the libraries that needs to be installed.
@danielcampos5573
@danielcampos5573 2 месяца назад
Thanks for the content!!! Love how you explain. I have a question. What do you recommend for Spanish embedding? Thanks!
@codewrecks
@codewrecks 2 месяца назад
I did not tried embedding outside english and italian, so I really have no special suggestion. Actually we have embeddings specialized on english and multilingual for everythign else. I suggest starting with some industry standard (openai, cohere, etc) before trying local model. You can estabilish a baseline than you can start using some multilingual one.
@email4adv
@email4adv 2 месяца назад
What a nice feature Advanced Data Analysis. May I ask how did you work with API and parse the result to download ChatGPT's response as a zip file before?
@codewrecks
@codewrecks 2 месяца назад
Actually I had custom code and some custom prompt to force GPT to have a precise output structure. It was C# code, I asked in the prompt to include a comment with the name of the file in each snippet, then parse output to find all snippet, hope that GPT understood my instruction so I find the name of the file in the first line and so on. It was not perfect and today I really rely on Copilot directly integrated in VS code or the technique in this video if I want it to generate some longer code.
@email4adv
@email4adv 2 месяца назад
@@codewrecks Given that not everyone has access to Advanced Data Analysis and ChatGPT4 Plus, I would love to see some sample code on how you did it previously if you don't mind to share. May be a github page or something. If not, it's cool.
@codewrecks
@codewrecks 2 месяца назад
I did not used it for a long time, it is on one of my github repo, but I really need to test again to verify that it still works :).
@slay1_1
@slay1_1 2 месяца назад
Hello, I liked your yubikey video very much and I applied it, but I have a question on my mind. I put a password on the piv and fido side as you did, but when I use services such as binance on the phone, it does not ask for a password, can I put a password on this? Because I feel so insecure this way.
@codewrecks
@codewrecks 2 месяца назад
If the service does not ask for a password it means that is using the key as second factor of authentication. If the service allow you to login only with the key without requiring the PIN, the service is (in my opinion) using the key in the wrong way. You should have two option Username+password then touch the key (used as 2FA) PIN+Key (FIDO2) But touching the key without requiring keyword pin is not security HAve you tried from an incognito browser tab? (Maybe you are still logged in and the site is asking only the key as 2FA)
@slay1_1
@slay1_1 2 месяца назад
@@codewrecks Now, when I check it on the computer, it works properly, first it verifies the pin and then the yubike. But I couldn't verify from the phone (I tried with Google). When I do it from the computer for Binance, it asks for the pin and then the yubike, but only the yubikey is enough on the phone. Is this their problem, right? Also, I installed yubico authenticator instead of authenticator and put a password there. Even if the wrong password is entered repeatedly, nothing happens. Is this normal? So, after a certain number of incorrect entries, there is no reset etc.?
@codewrecks
@codewrecks 2 месяца назад
@@slay1_1 If they do not require pin on the phone is their problem (but it seems strange to me because it means that they are only using 2FA part of the key). The password on yubico authenticator is used only to protect the 2FA stored inside the key, but there is not protection against incorrect entries. since it is used only for 2FA there is no need for this kind of protection. (yubico authenticator is the equivalent of google authenticator, with the sole difference that the seeds are inside your yubikey)
@slay1_1
@slay1_1 2 месяца назад
@@codewrecks Now I added the yubikey to the tutanota (mail service) phone application and it was added as U2f but it does not ask for my password. I think it doesn't require a password for the phone. Can you check that? Can you check if any phone app requires a password? I made the settings you made, I put a password on the fido side, I put a password on the piv side, but I did not set a password or any settings on the otp side. I made a password from the Yubico authenticator application and the password there works. I think I did something wrong or Yubikey is not working properly for the phone.
@codewrecks
@codewrecks 2 месяца назад
When key is used as two factor auth, it does not require the pin. What I suppose is that the application stores your credentials and uses yubikey only as 2FA. Usually all mail app on your phone does not ask credentials every time you open the app, it just stored them securely inside the phone. When you add your yubikey you are adding only the second factor, so it is normal that the pin is not requested. you should try to uninstall completely the app, reinstall again (or install in a new phone) then verify the login procedure. No application can use a FIDO2 credential inside your yubikey without entering the pin.
@slay1_1
@slay1_1 2 месяца назад
Hello, I registered the yubikey to binance Protection, but when binance asks for the yubikey over the phone, I show it to you, but it opens directly without asking for a password. I want it to ask for both yubikey and password, can I do this? I hope it was explanatory, I wrote it with translation.
@codewrecks
@codewrecks 2 месяца назад
I do not use binance so I do not know how they are using the key. Basically if the key is used as FIDO2 SINGLE source of auth, it should ask you the pin. Combination of KEY+PIN is enough to login. What you need is configure the key only as Second factor of authentication (but since I do not know binance, I do not know if it is possible and how to do it.)
@PaprikaYT
@PaprikaYT 2 месяца назад
Sick! thank you mate
@James_PET
@James_PET 2 месяца назад
That is nicely explained. Thank you so much. A few follow-up questions: 1. if you are creating a generic chatbot that should be able to do "anything", let's say, to summarise a video, but also to write and send an email - do you create a HandleBars plan and give it to chatGPT to pick one? 2. What if you want to mix a few plans, from the example above -> Summarize this video and write and send email
@codewrecks
@codewrecks 2 месяца назад
You will create agent for tasks, then it is GPT (or the LLM you want to use) that analyze the question of the user, looks at which agent it can use, and device a plan to solve user question. This lead to: a single user question will generate a unique plan. Plan is generated by LLM looking at the question of the user and the agent it can use.
@James_PET
@James_PET 2 месяца назад
​@@codewrecks@codewrecks Thank you. I saw this in a few videos later, but thanks for clarifying. What would be super interesting is if you could record a video on how to save plans and call them later, especially if it is possible to have LLM pickup from pre-saved plans So, in your example, you have a plan for transcribing a video, if you have a plan that drafts an email on a specific topic and sends it via a plug-in. It would be amazing to see how to offer those plans to LLM so it can pickup depending on what user asks Thanks
@codewrecks
@codewrecks 2 месяца назад
​@@James_PET Plan are not meant to be saved, because they are based on user question. What you can do is create agents that aggregate other agents. I'll explain You have three agents: extract audio, extract text from audio, summarize timeline. Now if you ask "Can you summarize video XYZ.mp4" the agent will interrogate the LLM and based on three agents devise a plan. But you can do this: Create a fourth agent, call it "Summarize Video", and internally simply call the three previous agent (or the functions that the agents call). Now that agent is actually a plan agent that is capable of doing what you requested. I did not examined the possibility to save a plan directly, it could be interesting if a user want to save it. In this situation the scenario is User ask "Can you summarize video XYZ.mp4?" He/she got a plan in return, the plan is good and it press save. Give the plan a name and a description. Then the software should add that plan as agent to the list of available agents.
@Paul_0001
@Paul_0001 2 месяца назад
Hi, this an been a good feature to use on the PC, thanks. Would please know if its also possible to use OTP Long Touch (Slot 2) with an iPhone, I've tried to set-up but with no joy, thanks Paul
@codewrecks
@codewrecks 2 месяца назад
I do not have an iPhone so I can't be sure, sorry
@baby333
@baby333 3 месяца назад
Please keep making Yubikey videos you do them great!!
@ByteMeCompletely
@ByteMeCompletely 3 месяца назад
I bought my Yubikeys from Amazon. I received the YubiKey 5 Nano on April 1st, the YubiKey 5 Ci on Apr 3rd. Yesterday, Apr 9th, I received the following messages upon boot: [ 2.336715] usb 1-14: new full-speed USB device number 4 using xhci_hcd [ 2.464891] usb 1-14: device descriptor read/64, error -71 [ 2.700891] usb 1-14: device descriptor read/64, error -71 [ 2.936965] usb 1-14: new full-speed USB device number 5 using xhci_hcd [ 3.064997] usb 1-14: device descriptor read/64, error -71 [ 3.300994] usb 1-14: device descriptor read/64, error -71 [ 3.409086] usb usb1-port14: attempt power cycle [ 3.820721] usb 1-14: new full-speed USB device number 6 using xhci_hcd [ 3.820896] usb 1-14: Device not responding to setup address. [ 4.029156] usb 1-14: Device not responding to setup address. [ 4.236968] usb 1-14: device not accepting address 6, error -71 [ 4.364974] usb 1-14: new full-speed USB device number 7 using xhci_hcd [ 4.365182] usb 1-14: Device not responding to setup address. [ 4.573165] usb 1-14: Device not responding to setup address. [ 4.780969] usb 1-14: device not accepting address 7, error -71 [ 4.781236] usb usb1-port14: unable to enumerate USB device These are from the Nano, but I believe the 5Ci exhibited similar messages. I am using a static password in slot 2 to decrypt my root partition. Are these messages indicating a failing yubikey?
@jlboni69
@jlboni69 3 месяца назад
Can you use the same yubikey for windows and macOS?
@codewrecks
@codewrecks 3 месяца назад
Absolutely
@jlboni69
@jlboni69 3 месяца назад
Thanks for reply. Greetings from Puerto Rico!
@baby333
@baby333 3 месяца назад
You have the best Yubikey videos ever please keep making them! watching all of them one by one
@ByteMeCompletely
@ByteMeCompletely 3 месяца назад
For using Security keys on iPhone, Apple REQUIRES two physical keys. And I can't get the Nano to work, even with a USB-A to lightning adapter (I've tried two). I recently bought a Yubikey 5 Nano and a 5Ci. I can register the 5Ci as a security key with my iPhone SE2, but not the Nano. These products are too difficult. I wasted $135.
@codewrecks
@codewrecks 3 месяца назад
Apple adapters from usb-A to lightning does not transfer data so yubikey nano does not work :(. This is the problem with proprietary ports like lightning. Luckily enough we should have USB-C for all device now.
@ByteMeCompletely
@ByteMeCompletely 3 месяца назад
I recently bought a Yubikey 5 Nano and a 5Ci. I can register the 5Ci as a security key with my iPhone SE2, but not the Nano. These products are too difficult. I wasted $135.
@ianwanjala8621
@ianwanjala8621 3 месяца назад
what about those using linux systems?
@codewrecks
@codewrecks 3 месяца назад
I usually work with SSH keys so it is a whole different technique :)
@ianwanjala8621
@ianwanjala8621 3 месяца назад
@@codewrecks thanks but ai already found a way by installing GCM on my linux machine. It works the same except for the ui
@Thomas____
@Thomas____ 3 месяца назад
In a other Video u mentioned that the Yubikey FIDO2 PIN can be stored in KeePass, so in this case, i cant secure Keepass with Yubikey because to get the PIN i need the PIN, is that correct?
@codewrecks
@codewrecks 3 месяца назад
If you have only one key you are correct, if you have more than one key you can use yubikey with keepass. Using the key for keepass does not require pin, because it is just another layer of security over the standard password
@Wh0CaresAnyway
@Wh0CaresAnyway 3 месяца назад
Thank you for the tutorial! It is possible to protect two different google accounts with the same hardware key?
@codewrecks
@codewrecks 3 месяца назад
Yes, absolutely
@Wh0CaresAnyway
@Wh0CaresAnyway 3 месяца назад
Great! Thank you for taking your time to answer 👍
@marlonvelez5240
@marlonvelez5240 3 месяца назад
Can you tell me why the keycloak environment variables are created automatically but not generated for me? I also get this error, if someone knows how to fix it would be great: Exception in multi-container configuration parse: YamlException: (Line: 6, Col: 9, Idx: 89) - (Line: 6, Col: 74, Idx: 154): Bind mount must start with ${WEBAPP_STORAGE_HOME}.
@codewrecks
@codewrecks 3 месяца назад
Can you share the whole yaml configuration file?
@csuazob
@csuazob 3 месяца назад
Thanks a lot for the explanation