Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
Lego_Robots
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matthew Baxter
Lego_Robots
Commits
42f6dc99
Commit
42f6dc99
authored
Jun 04, 2018
by
Carl Hetherington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Same for copy_keys.sh.
parent
8db51f2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
copy_keys.sh
copy_keys.sh
+4
-1
No files found.
copy_keys.sh
View file @
42f6dc99
...
@@ -2,5 +2,8 @@
...
@@ -2,5 +2,8 @@
if
[
!
-f
"
$HOME
/.ssh/id_rsa.pub"
]
;
then
if
[
!
-f
"
$HOME
/.ssh/id_rsa.pub"
]
;
then
ssh-keygen
-t
rsa
-N
""
-f
~/.ssh/id_rsa
ssh-keygen
-t
rsa
-N
""
-f
~/.ssh/id_rsa
fi
fi
sudo
ifconfig enp0s26u1u4 10.42.0.1 up
device
=
$(
cat
/proc/net/dev |
grep
enp0 |
awk
'{print $1}'
|
sed
-e
"s/://g"
)
sudo
ifconfig
$device
10.42.0.1 up
ssh-copy-id robot@10.42.0.3
ssh-copy-id robot@10.42.0.3
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment