質問編集履歴
6
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -313,3 +313,33 @@
|
|
313
313
|
appletoma:centos7 toma$
|
314
314
|
|
315
315
|
```
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
追記4(ssh -v -i /Users/toma/MyVagrant/.vagrant/machines/default/virtualbox/private_key -p 2222 コマンドの結果)
|
320
|
+
|
321
|
+
```ここに言語を入力
|
322
|
+
|
323
|
+
appletoma:centos7 toma$ ssh -v -i /Users/toma/MyVagrant/.vagrant/machines/default/virtualbox/private_key -p 2222 vagrant@127.0.0.1
|
324
|
+
|
325
|
+
OpenSSH_8.1p1, LibreSSL 2.7.3
|
326
|
+
|
327
|
+
debug1: Reading configuration data /etc/ssh/ssh_config
|
328
|
+
|
329
|
+
debug1: /etc/ssh/ssh_config line 47: Applying options for *
|
330
|
+
|
331
|
+
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 2222.
|
332
|
+
|
333
|
+
debug1: Connection established.
|
334
|
+
|
335
|
+
debug1: identity file /Users/toma/MyVagrant/.vagrant/machines/default/virtualbox/private_key type -1
|
336
|
+
|
337
|
+
debug1: identity file /Users/toma/MyVagrant/.vagrant/machines/default/virtualbox/private_key-cert type -1
|
338
|
+
|
339
|
+
debug1: Local version string SSH-2.0-OpenSSH_8.1
|
340
|
+
|
341
|
+
kex_exchange_identification: read: Connection reset by peer
|
342
|
+
|
343
|
+
appletoma:centos7 toma$
|
344
|
+
|
345
|
+
```
|
5
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -265,3 +265,51 @@
|
|
265
265
|
[-w local_tun[:remote_tun]] destination [command]
|
266
266
|
|
267
267
|
```
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
追記3(ssh -v -p 2222 vagrant@127.0.0.1コマンドでログを確認)
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
```ここに言語を入力
|
276
|
+
|
277
|
+
appletoma:centos7 toma$ ssh -v -p 2222 vagrant@127.0.0.1
|
278
|
+
|
279
|
+
OpenSSH_8.1p1, LibreSSL 2.7.3
|
280
|
+
|
281
|
+
debug1: Reading configuration data /etc/ssh/ssh_config
|
282
|
+
|
283
|
+
debug1: /etc/ssh/ssh_config line 47: Applying options for *
|
284
|
+
|
285
|
+
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 2222.
|
286
|
+
|
287
|
+
debug1: Connection established.
|
288
|
+
|
289
|
+
debug1: identity file /Users/akinoritoma/.ssh/id_rsa type -1
|
290
|
+
|
291
|
+
debug1: identity file /Users/akinoritoma/.ssh/id_rsa-cert type -1
|
292
|
+
|
293
|
+
debug1: identity file /Users/akinoritoma/.ssh/id_dsa type -1
|
294
|
+
|
295
|
+
debug1: identity file /Users/akinoritoma/.ssh/id_dsa-cert type -1
|
296
|
+
|
297
|
+
debug1: identity file /Users/akinoritoma/.ssh/id_ecdsa type -1
|
298
|
+
|
299
|
+
debug1: identity file /Users/akinoritoma/.ssh/id_ecdsa-cert type -1
|
300
|
+
|
301
|
+
debug1: identity file /Users/akinoritoma/.ssh/id_ed25519 type -1
|
302
|
+
|
303
|
+
debug1: identity file /Users/akinoritoma/.ssh/id_ed25519-cert type -1
|
304
|
+
|
305
|
+
debug1: identity file /Users/akinoritoma/.ssh/id_xmss type -1
|
306
|
+
|
307
|
+
debug1: identity file /Users/akinoritoma/.ssh/id_xmss-cert type -1
|
308
|
+
|
309
|
+
debug1: Local version string SSH-2.0-OpenSSH_8.1
|
310
|
+
|
311
|
+
kex_exchange_identification: read: Connection reset by peer
|
312
|
+
|
313
|
+
appletoma:centos7 toma$
|
314
|
+
|
315
|
+
```
|
4
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -96,6 +96,8 @@
|
|
96
96
|
|
97
97
|
追記2(VagrantFile中身)
|
98
98
|
|
99
|
+
```vagrantfile
|
100
|
+
|
99
101
|
# -*- mode: ruby -*-
|
100
102
|
|
101
103
|
# vi: set ft=ruby :
|
@@ -236,9 +238,11 @@
|
|
236
238
|
|
237
239
|
end
|
238
240
|
|
239
|
-
|
240
|
-
|
241
|
-
|
241
|
+
```
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
「sshに-vのオプションをつけてログを見ることができるのでお試しください」に対する返信
|
242
246
|
|
243
247
|
|
244
248
|
|
3
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -91,3 +91,173 @@
|
|
91
91
|
appletoma:centos7 toma$
|
92
92
|
|
93
93
|
```
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
追記2(VagrantFile中身)
|
98
|
+
|
99
|
+
# -*- mode: ruby -*-
|
100
|
+
|
101
|
+
# vi: set ft=ruby :
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
106
|
+
|
107
|
+
# configures the configuration version (we support older styles for
|
108
|
+
|
109
|
+
# backwards compatibility). Please don't change it unless you know what
|
110
|
+
|
111
|
+
# you're doing.
|
112
|
+
|
113
|
+
Vagrant.configure("2") do |config|
|
114
|
+
|
115
|
+
# The most common configuration options are documented and commented below.
|
116
|
+
|
117
|
+
# For a complete reference, please see the online documentation at
|
118
|
+
|
119
|
+
# https://docs.vagrantup.com.
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
# Every Vagrant development environment requires a box. You can search for
|
124
|
+
|
125
|
+
# boxes at https://vagrantcloud.com/search.
|
126
|
+
|
127
|
+
config.vm.box = "centos/7"
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
# Disable automatic box update checking. If you disable this, then
|
132
|
+
|
133
|
+
# boxes will only be checked for updates when the user runs
|
134
|
+
|
135
|
+
# `vagrant box outdated`. This is not recommended.
|
136
|
+
|
137
|
+
# config.vm.box_check_update = false
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
# Create a forwarded port mapping which allows access to a specific port
|
142
|
+
|
143
|
+
# within the machine from a port on the host machine. In the example below,
|
144
|
+
|
145
|
+
# accessing "localhost:8080" will access port 80 on the guest machine.
|
146
|
+
|
147
|
+
# NOTE: This will enable public access to the opened port
|
148
|
+
|
149
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
# Create a forwarded port mapping which allows access to a specific port
|
154
|
+
|
155
|
+
# within the machine from a port on the host machine and only allow access
|
156
|
+
|
157
|
+
# via 127.0.0.1 to disable public access
|
158
|
+
|
159
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
# Create a private network, which allows host-only access to the machine
|
164
|
+
|
165
|
+
# using a specific IP.
|
166
|
+
|
167
|
+
# config.vm.network "private_network", ip: "192.168.33.10"
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
# Create a public network, which generally matched to bridged network.
|
172
|
+
|
173
|
+
# Bridged networks make the machine appear as another physical device on
|
174
|
+
|
175
|
+
# your network.
|
176
|
+
|
177
|
+
# config.vm.network "public_network"
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
# Share an additional folder to the guest VM. The first argument is
|
182
|
+
|
183
|
+
# the path on the host to the actual folder. The second argument is
|
184
|
+
|
185
|
+
# the path on the guest to mount the folder. And the optional third
|
186
|
+
|
187
|
+
# argument is a set of non-required options.
|
188
|
+
|
189
|
+
# config.vm.synced_folder "../data", "/vagrant_data"
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
# Provider-specific configuration so you can fine-tune various
|
194
|
+
|
195
|
+
# backing providers for Vagrant. These expose provider-specific options.
|
196
|
+
|
197
|
+
# Example for VirtualBox:
|
198
|
+
|
199
|
+
#
|
200
|
+
|
201
|
+
# config.vm.provider "virtualbox" do |vb|
|
202
|
+
|
203
|
+
# # Display the VirtualBox GUI when booting the machine
|
204
|
+
|
205
|
+
# vb.gui = true
|
206
|
+
|
207
|
+
#
|
208
|
+
|
209
|
+
# # Customize the amount of memory on the VM:
|
210
|
+
|
211
|
+
# vb.memory = "1024"
|
212
|
+
|
213
|
+
# end
|
214
|
+
|
215
|
+
#
|
216
|
+
|
217
|
+
# View the documentation for the provider you are using for more
|
218
|
+
|
219
|
+
# information on available options.
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
# Enable provisioning with a shell script. Additional provisioners such as
|
224
|
+
|
225
|
+
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
|
226
|
+
|
227
|
+
# documentation for more information about their specific syntax and use.
|
228
|
+
|
229
|
+
# config.vm.provision "shell", inline: <<-SHELL
|
230
|
+
|
231
|
+
# apt-get update
|
232
|
+
|
233
|
+
# apt-get install -y apache2
|
234
|
+
|
235
|
+
# SHELL
|
236
|
+
|
237
|
+
end
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
に対する返信
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
```ここに言語を入力
|
246
|
+
|
247
|
+
appletoma:centos7 toma$ ssh -v
|
248
|
+
|
249
|
+
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
|
250
|
+
|
251
|
+
[-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
|
252
|
+
|
253
|
+
[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
|
254
|
+
|
255
|
+
[-i identity_file] [-J [user@]host[:port]] [-L address]
|
256
|
+
|
257
|
+
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
|
258
|
+
|
259
|
+
[-Q query_option] [-R address] [-S ctl_path] [-W host:port]
|
260
|
+
|
261
|
+
[-w local_tun[:remote_tun]] destination [command]
|
262
|
+
|
263
|
+
```
|
2
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -53,3 +53,41 @@
|
|
53
53
|
|
54
54
|
|
55
55
|
これは自分のPC(MAC)のどこを確認すればよろしいでしょうか?
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
追記
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
下記のようにVMは動いているようです。
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
```ここに言語を入力
|
68
|
+
|
69
|
+
appletoma:centos7 toma$ vagrant status
|
70
|
+
|
71
|
+
Current machine states:
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
default running (virtualbox)
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
The VM is running. To stop this VM, you can run `vagrant halt` to
|
80
|
+
|
81
|
+
shut it down forcefully, or you can run `vagrant suspend` to simply
|
82
|
+
|
83
|
+
suspend the virtual machine. In either case, to restart it again,
|
84
|
+
|
85
|
+
simply run `vagrant up`.
|
86
|
+
|
87
|
+
appletoma:centos7 toma$ ssh -p 2222 vagrant@127.0.0.1
|
88
|
+
|
89
|
+
kex_exchange_identification: read: Connection reset by peer
|
90
|
+
|
91
|
+
appletoma:centos7 toma$
|
92
|
+
|
93
|
+
```
|
1
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
自分で調べた所、ここのリンクにありますように
|
25
|
+
自分で調べた所、[ここのリンク](https://qiita.com/k-shimoji/items/abff44020bb3b2d065fe)にありますように
|
26
26
|
|
27
27
|
```ここに言語を入力
|
28
28
|
|