บทความ

กำลังแสดงโพสต์จาก มีนาคม, 2016

การแปลงกระแส DC เป็น AC

รูปภาพ
  ตัวอย่าง   SPS 5V. 60A efficiency 80% , power factor 0.65

Ubuntu SSH Fix for “Agent admitted failure to sign using the key”

รูปภาพ
Ubuntu SSH Fix for “Agent admitted failure to sign using the key” For the past few weeks I’ve had problems logging into servers using my SSH keys from Ubuntu desktops. The following would happen each time: [ chris@work ~ ]$ ssh server Agent admitted failure to sign using the key. Permission denied (publickey). [ chris@work ~ ]$ Oddly, this only happened from my Ubuntu desktop systems. My Ubuntu servers had no issue connecting. After some digging, I found out that issues with the gnome-keyring were at fault. gnome-keyring doesn’t always handle specific formats of SSH keys correctly. Unfortunately, gnome-keyring was trying to handle all SSH key usage, preventing the keys from working. If you are having this issue, you can confirm that gnome-keyring is at fault on your system by added  SSH_AUTH_SOCK=0  in front of the ssh command as follows: [ chris@work ~ ]$ SSH_AUTH_SOCK=0 ssh server Welcome to Ubuntu 14.10 (GNU/Linux 3.13.0-37-generic x86_64) * ...

การ login ข้ามเครื่องผ่าน ssh โดยไม่ต้องกรอก password

รูปภาพ
การ login ข้ามเครื่องผ่าน ssh โดยไม่ต้องกรอก password การ remote login โดยไม่ต้องใส่ password นี้สามารถทำได้โดยการใช้ PKI (Public Key Infrastruture) เข้าช่วยในการทำ เพื่ออำนวยความสะดวกในการทำงาน ที่จะต้อง remote ระหว่างเครื่อง การ remote ไปยังเครื่องปลายทางโดยไม่ต้องใส่ password สามารถทำได้โดย เครื่องต้นทาง 1. ทำการสร้ายคีย์ขึ้นมาโดยใช้คำสั่ง ssh-keygen root@clusterkit:~# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: d3:75:67:fe:d9:8d:1a:fe:a8:33:71:c1:45:48:b0:08 root@clusterkit-desktop The key's randomart image is: +--[ RSA 2048]----+ |          .++..  | +-----------------+ root@clusterkit-desktop:~# ...