PuTTY ではなく ssh sftp コマンドを使ってみるsteemCreated with Sketch.

in Steem Japan2 years ago (edited)

こんにちは、@yasuです。

VPSへ接続するときには、これまで、PuTTYを使用しましたが、sshコマンドで接続してみました。

image.png

まずは、接続してみる ssh steem@ubuntu

接続失敗 Permission denied (publickey).
image.png

秘密鍵を指定してみる ssh -i D:\work\Rex\Keys\witnessnode_withoutpass.ppk steem@ubuntu

接続失敗
Permissions for 'D:\\work\\Rex\\Keys\\witnessnode_withoutpass.ppk' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "D:\\work\\Rex\\Keys\\witnessnode_withoutpass.ppk": bad permissions steem@ubuntu: Permission denied (publickey).

image.png

秘密鍵を共有フォルダーからユーザーフォルダーに移動する ssh -i C:\Users\ojagg\.ssh\witnessnode_withoutpass.ppk steem@ubuntu

接続失敗
Load key "C:\\Users\\ojagg\\.ssh\\witnessnode_withoutpass.ppk": invalid format steem@ubuntu: Permission denied (publickey).
image.png

秘密鍵の形式を変換する

image.png

image.png

変換して、下記フォルダに指定のファイル名id_ecdsaで保存します。
%USERPROFILE%/.ssh/id_ecdsa

ssh steem@ubuntu

接続成功
image.png

sftp steem@ubuntu

接続成功
image.png

まとめ

  • 秘密鍵を形式変換する PuTTYgenツール使用
  • 秘密鍵を指定のファイル名で指定のフォルダに保存する %USERPROFILE%/.ssh/id_ecdsa

Ubuntuでも同じ

image.png

https://steemitimages.com/u/yasu/avatar/
https://steemitimages.com/300x0/

ありがとうございました。

いらすとや
steemit サインアップ
steemit 知識
日本語 Steemit Discord (超初心者~誰でも)

image.png

image.png

@yasu.witness は、証人ノードと、seedノードを立ち上げています。STEEMブロックチェーン安定化の寄与となるよう取り組んでいます。また、APIノードの立ち上げに向けて、今は技術を習得しています。30票の1つを与えてくださると嬉しいです。
Simply go to the Steemit Wallet Witness list, scroll to the bottom, and fill in the form:
yasu.witness.gif

Sort:  
 2 years ago 

@yasu さん、こんにちは。

tomoyan.witnessに投票お願いします👇

https://steemitwallet.com/~witnesses

SPデレゲーション報酬

Wintessに投票すると毎日の報酬がアップ!詳しくは👇
https://steemit.com/hive-161179/@japansteemit/sp-delegation-reward-update

💡 アップボートガイド 💡

分からない事は何でも質問して下さい🙇

Coin Marketplace

STEEM 0.16
TRX 0.12
JST 0.026
BTC 56905.21
ETH 2508.41
USDT 1.00
SBD 2.36