自宅鯖linux環境移行(自宅→レンタル) Conoha初ログイン

契約したので、さわってみます。

ガイド↓を見ながらやりまーす。
https://www.conoha.jp/guide/



感想

ガイドも結構作りこんでくれてある感


管理画面
 きれいでみやすいです。

インストール時間
  インストールを待つことなくログインできました\( 'ω')/

コンソール
  Webからコンソールがあるので、SSHいる?とおもったけど表示行が短いかな。


sshつながらない。。。(´・ω・`)
なんだろうね。

---サーバ作り直してみた


うごいた。。。 IPかわったからそれ???


やることメモ

IPアドレスを確認する

 サーバー > ネットワーク情報 > IPアドレス をメモる。

コンソールからログイン

ユーザ作成 (パスワード、sudo設定)
useradd name
passwd name
gpasswd -a name wheel



sshの設定

 /etc/sshd_config 必要個所を書き換える

RSAAuthentication yes
PubkeyAuthentication yes


 sudo service sshd restart

ssh-keygen -t rsa -b 2048
 
id_rsa これを拾ってくること。
 
port 22 を 適度に変更。

iptables設定 (適宜
 (firewalld が個人的に使いにくいので。。。

 
yum install iptables-services
 

sudo systemctl stop firewalld
sudo systemctl mask firewalld

sudo systemctl start iptables
sudo systemctl start ip6tables
sudo systemctl status ip6tables
sudo systemctl status iptables
sudo systemctl enable iptables
sudo systemctl enable ip6tables

sudo systemctl list-unit-files | grep tables
sudo systemctl list-unit-files | grep firewalld

/etc/iptables
ポートを合わせる
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT

/etc/ip6tables
以下の行をコメントアウト
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
  





このブログの人気の投稿

laragonのphpmyadminでエラーが出た。

メールサーバの移行(自宅→レンタル) 検討

Conoha VPS Centos7へTeamspeak3の導入