Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change orientation of scp commands in commands.sh #54

Closed
iannesbitt opened this issue Jan 10, 2024 · 1 comment
Closed

Change orientation of scp commands in commands.sh #54

iannesbitt opened this issue Jan 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working v0.1.1 Version 0.1.1 item
Milestone

Comments

@iannesbitt
Copy link
Contributor

Since the only ssh direction that works is so[node|.test] > cn[|-stage.test], the scp command that is written to commands.sh should reflect that. Currently the command is:

scp mnlite@so.test.dataone.org:/home/mnlite/WORK/mnlite/instance/nodes/mnTestDVNO/xml/mnTestDVNO_PConzett.xml ~/d1_xml/mnTestDVNO/

It should instead be:

scp /home/mnlite/WORK/mnlite/instance/nodes/mnTestDVNO/xml/mnTestDVNO_PConzett.xml nesbitt@cn-stage.test.dataone.org:~/d1_xml/mnTestDVNO/
@iannesbitt iannesbitt added bug Something isn't working v0.1.1 Version 0.1.1 item labels Jan 10, 2024
@iannesbitt iannesbitt added this to the 0.1.1 milestone Jan 10, 2024
@iannesbitt iannesbitt self-assigned this Jan 10, 2024
@iannesbitt
Copy link
Contributor Author

iannesbitt commented Jan 10, 2024

By default this will be run from a mnlite user account on the MN. At present the ssh user default is set to be based on the user that runs the script, i.e.

USER_NAME = pwd.getpwuid(os.getuid())[0]

will resolve to the current user (mnlite). In the future this will be configurable via #53 (to be e.g. nesbitt or another user).

iannesbitt added a commit that referenced this issue Jan 10, 2024
iannesbitt added a commit that referenced this issue Jan 10, 2024
@iannesbitt iannesbitt changed the title Change orientation of ssh commands in commands.sh Change orientation of scp commands in commands.sh Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v0.1.1 Version 0.1.1 item
Projects
None yet
Development

No branches or pull requests

1 participant