mirror of
https://github.com/rancher/os.git
synced 2025-08-31 06:11:12 +00:00
./scripts/ssh
convenience script
run `./scripts/ssh` to easily ssh into the RancherOS KVM instance started with `./scripts/run`
This commit is contained in:
27
assets/rancher.key
Normal file
27
assets/rancher.key
Normal file
@@ -0,0 +1,27 @@
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEowIBAAKCAQEAvOcPbLWcoi0Kfw5FTun6sIkoWHI9QpSnbQqoB7X/jy6SZBUX
|
||||
khbvMttcvnr9PYLEjEUa4xe8rdKVB1es53EIVXqrGbYHOVmxC2NgzmFBpkZ/wgrz
|
||||
216L6Aa0I0qK6pQZqbj8LErWC6/dl5/lVbDDUlCHoB2Ntg6YRmwyhvOb6ygfB8VM
|
||||
RiA8RQXbP7hPBYUsvsbKMk/41GQyuqYKth5xpeg/NVYiJSnnKTqVpVtwfn3mvfQA
|
||||
zcmTVbw82xxOaXCN1UcPLufVpqVjlIE+qmnDVQApfBqqQb0JPLMOzv1/Q0mRwimn
|
||||
3g/RuZPhmGwFM/dnylq8f5Tl31Fz0t/nPHUSBQIDAQABAoIBAGS4EhpVTvmNaF5M
|
||||
PpoP2TFNQCzAZHdeiVJzbxoFaQhvvXANau7iuZD1MyMAsouccK2VnvtcSaaoc/th
|
||||
PPh95QKmkBn6Wymx79rxlskTRAyi5DWS32ikpZYGFQAIG79tTa2XyyTWlf/POihB
|
||||
AedJgysdcuLlPwzGBVzvDZW0x/p+Ejs+etW0QBb1swcqheM9cc6RBoF/aLPyUK4i
|
||||
1ztVuzJTvTTV16xTNF93XFS177Y6toXZEaCBpuMg/XX0y0Fj4iAkSIqJoEV6MKeI
|
||||
SqQad/sVsLTwCsW+/so7jfRWtm5xRJOtNxpSUrGrNYuRBUr4VlXNZT4TOOS9BFEF
|
||||
AyTSBcECgYEA+9wnSZjEFgz/8x/xsyPCsKBhCu6nfV/mxVgTrRXuMtpzujAnKXsf
|
||||
jEh1vtKH9UpbwM+gRYxZL+ZVjB2uE523hoDxqDfpVnWfItNs4OU4qougqUHBdsZe
|
||||
0t0Xjyl/17f7g7BWMXSWhTcoDlirGHtjvIDh0CXVfWvtcLaiQj0dAfUCgYEAwAH6
|
||||
JPZotxue8bUyglCrOyg3P0G9QgeQSabbCCKDyiGzKYTXqx1vxEZ+0RCKSg0D/spK
|
||||
2x7V0wearEOX/rCuQVw2r4oltUmbmq+BHYnXXz0hM0TMJs1BPZhvMhPGWq0lm1WL
|
||||
NKfAOU64hZQAPwf3Z+3B5jywQfOmwssOfAXr9dECgYBroKrRUo0I90kxNkdtTCzY
|
||||
mdCegVnlw+O0FW1jG+oMpTmrKQSzP0A+DID0qLcc5UfMX22YCt/aDk4kcFKBY3aX
|
||||
7eZXAn2eSulUUpFGke3jQ4PGkKkB/sdqyLxWm19caez7W5GZ1L618toVN2L2NVRr
|
||||
q4/UCTbwP/zZm9I/CCqrOQKBgQClQk5hd/BDAbP5B+L0RKhMX13FxTg217m5mrJU
|
||||
uxhBZmYFK0BRGCH1hlNqb9kGyVMR/l0VYeHaI2ZeNENjRACHYu3ygm3YLgWOytXP
|
||||
ba+AWmXz8ZfhIbKwaD30lQ6ZRwPiQWtyI5wP9xBccDkSBzJLMlk8aCmwahyy9gB+
|
||||
gL5JsQKBgBT1ILAQvK2IGmwHFvUApXruARIvU4lrMQJ9tpYiPtpSNAPP73jUac68
|
||||
thh3zQYJfYDQbdbwnF41X6WPvbYwb7uH5PG/T2A78YSZQyMpCk+enaf8o0dOZEAH
|
||||
jhnrn3KQFCRQXRUfm9O6N+S04S4uXT8++vlZucW7jEq8GW0nYxj/
|
||||
-----END RSA PRIVATE KEY-----
|
1
assets/rancher.key.pub
Normal file
1
assets/rancher.key.pub
Normal file
@@ -0,0 +1 @@
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC85w9stZyiLQp/DkVO6fqwiShYcj1ClKdtCqgHtf+PLpJkFReSFu8y21y+ev09gsSMRRrjF7yt0pUHV6zncQhVeqsZtgc5WbELY2DOYUGmRn/CCvPbXovoBrQjSorqlBmpuPwsStYLr92Xn+VVsMNSUIegHY22DphGbDKG85vrKB8HxUxGIDxFBds/uE8FhSy+xsoyT/jUZDK6pgq2HnGl6D81ViIlKecpOpWlW3B+fea99ADNyZNVvDzbHE5pcI3VRw8u59WmpWOUgT6qacNVACl8GqpBvQk8sw7O/X9DSZHCKafeD9G5k+GYbAUz92fKWrx/lOXfUXPS3+c8dRIF
|
3
assets/scripts_ssh_config
Normal file
3
assets/scripts_ssh_config
Normal file
@@ -0,0 +1,3 @@
|
||||
StrictHostKeyChecking no
|
||||
UserKnownHostsFile /dev/null
|
||||
LogLevel quiet
|
@@ -82,6 +82,7 @@ if [ -n "$CLOUD_CONFIG" ]; then
|
||||
else
|
||||
echo "#cloud-config" > ${USER_DATA}
|
||||
echo "ssh_authorized_keys:" >> ${USER_DATA}
|
||||
echo " - $(<${BASE}/assets/rancher.key.pub)" >> ${USER_DATA}
|
||||
for i in ${HOME}/.ssh/*.pub; do
|
||||
if [ -e $i ]; then
|
||||
echo " - $(<$i)" >> ${USER_DATA}
|
||||
|
6
scripts/ssh
Executable file
6
scripts/ssh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
exec ssh -p 2222 -F ./assets/scripts_ssh_config -i ./assets/rancher.key rancher@localhost
|
Reference in New Issue
Block a user