Jump to content

I need to create a file on my Polisy using SSH


someguy

Recommended Posts

Posted

I am trying to use the "August" lock NodeServer and it requires a file to be on my Polisy.  the instructions for the nodeserver suggest this:

/var/polyglot/nodeservers/AugustLock/token.txt

but i suspect it could be called almost anything.   My August NodeServer doesn't work because I don't have this file available to store my token in.  

I am using windows 10 SSH to access my polisy and I cannot figure out what the command is that would create such a file.  I've looked everywhere.  I'd appreciate any help.

(also, there is not a specific forum for the August Lock Webserver, for some reason.

Posted

@someguy There are a couple of ways to go about this. Probably the easiest is to create the file on your PC using your favorite text editor, then using SCP or WinSCP copy it to:

/var/polyglot/nodeservers/AugustLock/

Now you'll need to change ownership of the file from admin to polyglot

sudo chown polyglot:polyglot token.txt

That should do it.

  • Like 1
Posted

I use Fillezilla, mostly, to transfer files back and forth to my RPis, polisy and Windows 10 laptop.

I can create, delete, or move,  a new file, folder right on the device or create it on my Win 10 machine and transfer it to polisy when done. It allows me to see the file structure more graphically than freeBSD text only interface.

Filezilla is a free piece of software, well written, stable, and gets updated frequently with new features. Runs on Win 10/11.

Posted
1 hour ago, larryllix said:

I use Fillezilla, mostly, to transfer files back and forth to my RPis, polisy and Windows 10 laptop.

I can create, delete, or move,  a new file, folder right on the device or create it on my Win 10 machine and transfer it to polisy when done. It allows me to see the file structure more graphically than freeBSD text only interface.

Filezilla is a free piece of software, well written, stable, and gets updated frequently with new features. Runs on Win 10/11.

Larryllix:

I appreciate you taking the time to make the suggestion for Filezilla.  I've downloaded it and I cannot get connected it connected to my Polisy.  any suggestions on which port to use?  when I SSH to my Polisy, I don't use a port.  

Posted

Actually, you can easily do it from the command line, if you know how to log into your Polisy.

Use 'ssh' to log into the Polisy.  Once you've logged in, navigate to the appropriate directory:

cd /var/polyglot/nodeservers/AugustLock

Then, use the 'touch' utility to create the file:

sudo touch token.txt

Then, you may need to change file ownership as @kzboray indicated above:

sudo chown polyglot:polyglot token.txt

The file created will be an empty file.

Posted
16 minutes ago, someguy said:

Larryllix:

I appreciate you taking the time to make the suggestion for Filezilla.  I've downloaded it and I cannot get connected it connected to my Polisy.  any suggestions on which port to use?  when I SSH to my Polisy, I don't use a port.  

polisy uses a port as well as SSH and other protocols. That is how the drivers at the receiving end know what protocol to use in response.

Using filezilla, use port 22 and it will assume you want the sftp:// protocol. You will need to insert your username and password you use to connect to polyglot for it to make automatic connections. After that, you will see it on the quick connect pulldown menu.

 

Posted (edited)

@larryllix I'm getting closer.  I found that inside of the 

"/"

there is a file called "var"

inside that there is one called "Polyglot" and then another inside that called "nodeservers" but there is NOT one inside that called "AugustLock".  when I try to create one there or move one there, I get an error that says "permission denied".  how can I fix that?

the "/" (root?) file has these attributes:

image.png.c6b900066576c25aa708560ad4cd1c2f.png

 

but the "var" file has these:

image.png.54852ada8bba75b70c09e99fcc216e6b.png

am I "public", I'm logged in as admin though?!?

 

here's the error log:

Starting upload of J:\var\polyglot\nodeservers\AugustLock\token.txt
Command:	cd "/var/polyglot/nodeservers/AugustLock"
Error:	Directory /var/polyglot/nodeservers/AugustLock: no such file or directory
Command:	cd "/var/polyglot/nodeservers"
Response:	New directory is: "/var/polyglot/nodeservers"
Command:	mkdir "AugustLock"
Error:	mkdir /var/polyglot/nodeservers/AugustLock: permission denied
Command:	mkdir "/var/polyglot/nodeservers/AugustLock"
Error:	mkdir /var/polyglot/nodeservers/AugustLock: permission denied
Command:	cd "/var/polyglot/nodeservers/AugustLock"
Error:	Directory /var/polyglot/nodeservers/AugustLock: no such file or directory
Command:	mtime "/var/polyglot/nodeservers/AugustLock/token.txt"
Error:	get attrs for /var/polyglot/nodeservers/AugustLock/token.txt: no such file or directory
Command:	put "J:\var\polyglot\nodeservers\AugustLock\token.txt" "/var/polyglot/nodeservers/AugustLock/token.txt"
Error:	/var/polyglot/nodeservers/AugustLock/token.txt: open for write: no such file or directory
Error:	File transfer failed
Status:	Starting upload of J:\var\polyglot\nodeservers\AugustLock\token.txt
Command:	cd "/var/polyglot/nodeservers/AugustLock"
Error:	Directory /var/polyglot/nodeservers/AugustLock: no such file or directory
Command:	cd "/var/polyglot/nodeservers"
Response:	New directory is: "/var/polyglot/nodeservers"
Command:	mkdir "AugustLock"
Error:	mkdir /var/polyglot/nodeservers/AugustLock: permission denied
Command:	mkdir "/var/polyglot/nodeservers/AugustLock"
Error:	mkdir /var/polyglot/nodeservers/AugustLock: permission denied
Command:	cd "/var/polyglot/nodeservers/AugustLock"
Error:	Directory /var/polyglot/nodeservers/AugustLock: no such file or directory
Command:	mtime "/var/polyglot/nodeservers/AugustLock/token.txt"
Error:	get attrs for /var/polyglot/nodeservers/AugustLock/token.txt: no such file or directory
Command:	put "J:\var\polyglot\nodeservers\AugustLock\token.txt" "/var/polyglot/nodeservers/AugustLock/token.txt"
Error:	/var/polyglot/nodeservers/AugustLock/token.txt: open for write: no such file or directory
Error:	File transfer failed
Status:	Starting upload of J:\var\polyglot\nodeservers\AugustLock\token.txt
Command:	cd "/var/polyglot/nodeservers/AugustLock"
Error:	Directory /var/polyglot/nodeservers/AugustLock: no such file or directory
Command:	cd "/var/polyglot/nodeservers"
Response:	New directory is: "/var/polyglot/nodeservers"
Command:	mkdir "AugustLock"
Error:	mkdir /var/polyglot/nodeservers/AugustLock: permission denied
Command:	mkdir "/var/polyglot/nodeservers/AugustLock"
Error:	mkdir /var/polyglot/nodeservers/AugustLock: permission denied
Command:	cd "/var/polyglot/nodeservers/AugustLock"
Error:	Directory /var/polyglot/nodeservers/AugustLock: no such file or directory
Command:	mtime "/var/polyglot/nodeservers/AugustLock/token.txt"
Error:	get attrs for /var/polyglot/nodeservers/AugustLock/token.txt: no such file or directory
Command:	put "J:\var\polyglot\nodeservers\AugustLock\token.txt" "/var/polyglot/nodeservers/AugustLock/token.txt"
Error:	/var/polyglot/nodeservers/AugustLock/token.txt: open for write: no such file or directory
Error:	File transfer failed

 

Edited by someguy
more info
Posted (edited)

You can access things inside by using the sudo prefix  (super user do).

Be very careful using "sudo" as you are then playing with system things and can make a mess that requires serious repair.

If you change permissions or ownership of files or directories you may lock polyglot out of accessing them.

 

Edited by larryllix
Posted (edited)

@someguy If there is no sub directory /August Lock, then then the Node Server (NS) did not install. Here is what the directory contents should look like once the NS is installed.

2022-02-05_12-50-49.png.492214e5b6ab7af703ad797bca261725.png

First you will need to figure out what happened to the NS install then go back to creating the necessary .txt file.

As for permissions, @larryllix is correct if you fat finger a command or try something your not sure of it can really complicate things. The single command supplied,

sudo chown polyglot:polyglot token.txt

and when to use it, is necessary for Polyglot to be able to read the .txt file once you put it into the right place. So don't be afraid to use it.

Edited by kzboray
Posted

here's one more thought I have about this.  I am SSH'ing into my Polisy, and listed there are the nodes that I have on PG2.  

image.png.d1e11ceea551fb1c9715357fc05df9d5.png

but this "AugustLock" Nodeserver is installed on PG3.  do i need to FileZilla into a different port to get to PG3?  obviously I don't understand this stuff all that well, I guess.  I really appreciate all of the help!

Posted (edited)

@someguy Ha sorry about that. I was giving you instructions for PG2. PG3 is a bit different.

You will want to put your TOKEN.TXT file in

/var/polyglot/pg3/ns/00:01:b9:xx:xx:xx_xx

2022-02-05_14-35-15.png.25ec13c8657371d81fa6f1be50b0e3fa.png

Where 00:01:b9:xx:xx:xx_xx is the address of your IoP and slot number for the NS.

Edited by kzboray
Posted

@kzboray  Okay, I found the location you kindly showed me and I put a file there called token.txt.  I changed the ownership as you also kindly showed me.  it seems like it helped or fixed the problem with the token file, but I am still getting this error:

2022-02-06 06:14:40,773 Thread-1 udi_interface ERROR august_poly:parameterHandler: Error starting August NodeServer: unexpected EOF while parsing (<unknown>, line 0)

any suggestions for how to address this problem?  Thank you guys so much for your help!

Guest
This topic is now closed to further replies.

×
×
  • Create New...