Afternoon with Green Tea
  • Algorithm
  • ML
  • DL
  • RL
  • CV
  • System
  • Me
Sign in Subscribe
System

Add SSH keys to authorized_keys file

  • Orlando Ding

Orlando Ding

Apr 26, 2024

Reference: https://askubuntu.com/questions/46424/how-do-i-add-ssh-keys-to-authorized-keys-file

An alternative way to install your public key in the remote machine's authorized_keys:

cat ~/.ssh/id_rsa.pub | ssh USER@HOST "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

Sign up for more

Enter your email
Subscribe
古风随笔

古风随笔

观国风舞者,有感随作 水月幽兰 顾盼生姿,神若幽兰拂轻梦; 清风朗月,影随素袖入流光。 一曲无声,心与清辉同静远; 半窗疏影,人如水月淡生香。 英文译本(chatgpt) Moonlit Orchid Grace in each glance, like orchids brushing dreams; Breeze and bright moon, her sleeves trail through the light. A song without sound — her heart drifts with silver gleam; Beneath the sparse shadows, she breathes fragrance,
Nov 11, 2025 1 min read
我会在这里

我会在这里

Daily life about personal mood here
Jun 11, 2025 2 min read

Finetuning llama

For Llama2, refer to Fine-Tuning Llama 2 Using LoRA and QLoRA: A Comprehensive Guide. For training phase * Set up QLoRA and BitsAndBytes configuration * Load base model with quantization setting * Tokenizer and perfconfiguraiton * Start SFTTrainer * Save weight to certain folder after training For evaluation phase * Load base model using AutoModelForCausalLM * Merge
Aug 26, 2024 2 min read
Afternoon with Green Tea © 2025
  • Latest Posts
  • Facebook
  • Twitter
  • Ghost
蜀ICP备2021030655