Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vdt-plugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
vdt-plugin
Commits
5a82efa2
Commit
5a82efa2
authored
Feb 04, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tools to setup password-less ssh connection to the remote host.
parent
19bfb29f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
18 deletions
+67
-18
gnu.png
icons/gnu.png
+0
-0
vivado_launch.xml
tools/Xilinx/vivado_launch.xml
+67
-18
No files found.
icons/gnu.png
0 → 100644
View file @
5a82efa2
1001 Bytes
tools/Xilinx/vivado_launch.xml
View file @
5a82efa2
...
...
@@ -8,19 +8,30 @@
shell=
"/bin/bash"
interface=
"VivadoInterface"
description=
"Launching remote Xilinx Vivado in console"
>
<action-menu>
<action
label=
"Launch Vivado"
resource=
""
icon=
"xilinx.png"
/>
<action
label=
"Generate public key"
resource=
""
icon=
"gnu.png"
/>
<action
label=
"Setup connection to"
resource=
"%RemoteUser@%RemoteHost"
icon=
"gnu.png"
/>
</action-menu>
<!--
<parameter id="command" label="Command" default=""
type="String" format="CopyValue" visible="true" readonly="false" /> -->
<parameter
id=
"actionIndex"
default=
"%%ChosenActionIndex"
type=
"String"
format=
"CopyValue"
visible=
"false"
/>
<input>
<group
name=
"General"
>
<!-- "command" -->
"RemoteCommand"
</group>
</input>
<output>
<
line
name=
"Vivado"
interrupt=
"\x03
"
>
<
if
actionIndex=
"0"
>
<line
name=
"Vivado
"
>
"%ShellSwitches"
"%PreSSH"
"ssh"
"-oBatchMode=yes"
<if
TerminalMode =
"true"
>
"-t -t"
</if>
...
...
@@ -32,7 +43,45 @@
"%RemoteCommand"
"'"
"%SSHExtra"
"|| { echo '*** ssh connection to the server %RemoteUser@%RemoteHost failed ***';"
"echo 'You may need to configure connection - it is done in \"Package Setup\"';"
"echo 'Then generate a public key (if it is not done already), and post it to';"
"echo 'the remote server (currently set as %RemoteUser@%RemoteHost)';"
"exit 1; } ;"
</line>
</if>
<if
actionIndex=
"1"
>
<line
name=
"Keygen"
>
"%ShellSwitches"
"echo \"Generating public key with command:\";"
"echo \"ssh-keygen -t rsa -q -f ~/.ssh/id_rsa -N ''\";"
"ssh-keygen -t rsa -q -f ~/.ssh/id_rsa -N ''"
</line>
</if>
<if
actionIndex=
"2"
>
<line
name=
"SSHCopyID"
>
"%ShellSwitches"
"echo \"**********************************************\";"
"echo \"** **\";"
"echo \"** This command requires you to be able **\";"
"echo \"** to login to the remote system and enter **\";"
"echo \"** a password once to post your public key **\";"
"echo \"** there. **\";"
"echo \"** **\";"
"echo \"** For this you need 'ssh-askpass' to be **\";"
"echo \"** installed in your system. **\";"
"echo \"** **\";"
"echo \"** If the command will fail, you need to **\";"
"echo \"** install 'ssh-askpass' or just manually **\";"
"echo \"** run: **\";"
"echo \"\n ssh-copy-id %RemoteUser@%RemoteHost\n\";"
"echo \"** from the system terminal and enter your **\";"
"echo \"** password when prompted. **\";"
"echo \"** **\";"
"echo \"**********************************************\";"
"ssh-copy-id %RemoteUser@%RemoteHost;"
</line>
</if>
</output>
</tool>
</vdt-project>
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