RHEL9

環境
RHEL8

ncについて
Netcatは、Unix系OSコマンドラインアプリケーションの一つ。TCPやUDPのパケットを読み書きするバックエンドとして機能するツールです。

netcatのイ ...

RHEL9

環境
RHEL8.6
AWS EC2

操作方法
1.公開鍵の作成

ssh-keygen -t rsa -f <鍵の名前>

ファイルが2つ作成されます。pubがついているほうが公 ...

AWS

環境
Session Managerエージェントインストール済み
プライベートサブネット
AWS EC2

操作方法
1.エンドポイントの作成
「VPC」->「エンドポイント」- ...

AWS

環境
SSMエージェントのインストール済み
AWS RDS(MySQL)
AWS CLi のインストール済み
Windows 10 64bit

概要
ポートフォワードとは、インターネ ...

AWS

環境
AmazonLinux2022

エラー現象
# tail -f/var/log/secure
xxx userauth_pubkey: key type ssh-rsa not in Pubk ...

RHEL9

環境
RHEL9.2
Rocky9

現象
Tera Term で Rocky9/RHEL9 にログインできない
エラーログ

info: userauth_pubkey: key typ ...

AWS

環境
Windows10 64bit
AWS CLI

操作方法
1.AWS CLIのインストールを行う
参考

2.Windows10 コマンドプロンプトを起動します。

Rails

環境
RHEL8.6

1.SSH-agentの状態を確認します
$ ssh-add -l
Could not open a connection to your authentication age ...

Serverspec

環境
Serverspec
RHEL8.6

構文

describe group('グループ名') do it { should exist }end

ユーザやグループの存在を確認するには、grou ...

Serverspec

環境
Serverspec
RHEL8.6

構文

describe process("プロセス名t") do it { should be_running }end

processを利用してプロセ ...

Serverspec

環境
Serverspec
RHEL8.6

構文

describe file('ディレクトリ名') do it { should be_directory } it { should be_owned ...

Ansible

環境
Serverspec
RHEL8.6

構文
describe package(‘パッケージ名’) do
it { should be_installed.by( ...

Ansible

環境
RHEL8.6

操作方法
1.Serverspecのインストールを行う

gem install serverspec

2.Serverspec初期セットアップを行う
serversp ...

Ansible

環境
AlmaLinux release 9.2 (Turquoise Kodkod)
Serverspec

構文

describe service('サービス名') do it { should_n ...

Ansible

環境
AlmaLinux release 9.2 (Turquoise Kodkod)
Serverspec

構文

describe service('サービス名') do it { should b ...

Ansible

環境
RHEL8.6
Serverspec

構文

describe cron do   it { should have_entry(xxxx).with_user('ユーザー名')end

エント ...

Ansible

環境
Serverspec
RHEL8.6

操作方法
1.Serverspecのインストールを行います
$ gem install serverspec

2.Serverspec ...

Ansible

環境
Severspec
RHEL8.6

操作方法
1.host_inventory
ホスト名を取得します。

2.host_inventory
デバイスパスで割り当てられ ...