Presuming you mean the XNAT instance running on the VM, it’s admin/admin.
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Phone: +1 (314) 273-1645
From: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com> on behalf of Emanuel Adams <eaf...@gmail.com>
Reply-To: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com>
Date: Tuesday, May 19, 2020 at 12:38 PM
To: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] XNAT VM login username/password
* External Email - Caution * |
I cloned the xnat-vagrant repo. What is the username/password to login to the VM?
Thanks.
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/fad309e5-d2bb-4a4f-b474-1640f90ed1f7%40googlegroups.com.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
Presuming you mean the XNAT instance running on the VM, it’s admin/admin.
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Phone: +1 (314) 273-1645
From: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com> on behalf of Emanuel Adams <eaf...@gmail.com>
Reply-To: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com>
Date: Tuesday, May 19, 2020 at 12:38 PM
To: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] XNAT VM login username/password
* External Email - Caution *
I cloned the xnat-vagrant repo. What is the username/password to login to the VM?
Thanks.
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/fad309e5-d2bb-4a4f-b474-1640f90ed1f7%40googlegroups.com.
Ah, yeah for ssh access that works. You can also add a public ssh key to the authorized_keys file in ~/.ssh for the xnat user. I add a public key there, then configure the VM in my ~/.ssh/config file:
Host xnatdev xnat-release
HostName %h.xnat.org
User xnat
IdentityFile ~/.ssh/id_ed25519
ForwardAgent yes
The nice thing here is that I can have multiple VMs configured (here xnatdev and xnat-release) and access them without changing to the Vagrant folder for each:
$ ssh xnatdev
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/2d5bbe94-ab91-4f82-a161-aeef7c97d4e1%40googlegroups.com.
There are a couple of ways you can access the Vagrant VM from Windows:
The vagrant command you mentioned should work, but you need to invoke in the folder for the configuration you’re running (e.g. configs/xnat-dev). So from the root folder for the xnat-vagrant repo, you could do:
cd configs/xnat-dev
vagrant ssh
That doesn’t require having anything in ~/.ssh/config or anything else: Vagrant sets up its own public/private key pair.
The issue with doing vagrant ssh vm_id is that Vagrant can find the original Vagrantfile located in the configuration folder but those Vagrantfiles all reference ../../scripts/Vagrantfile, so trying to resolve that by a relative path fails unless you’re already in one of the configuration folders…
You can also use the run script in the root xnat-vagrant folder. I’ve attached a trimmed down log that shows creating a new instance of a VM then ssh’ing into it using the run script.
One other thing you can do is to specify a public key in the file local.yaml in your configuration folder, so e.g. configs/xnat-dev/local.yaml. The line to specify the public key looks something like this:
public_key: ~/.ssh/id_ed25519.pub
Then I have this in my ~/.ssh/config file:
Host xnatdev
HostName %h.xnat.org
User xnat
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
ForwardAgent yes
With that I can just do:
$ ssh xnatdev
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-73-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue 06 Jul 2021 04:31:37 PM UTC
System load: 0.03 Users logged in: 0
Usage of /: 7.2% of 61.31GB IPv4 address for docker0: 172.17.0.1
Memory usage: 16% IPv4 address for eth0: 10.0.2.15
Swap usage: 0% IPv4 address for eth1: 10.1.1.170
Processes: 131
This system is built by the Bento project by Chef Software
More information can be found at https://github.com/chef/bento
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
xnat@xnatdev:~$
HTH…
--
Rick Herrick
XNAT Architect/Developer
Computational Imaging Laboratory
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/fbd91853-b234-4ca0-b0fe-fa97b7a2b4a7n%40googlegroups.com.