Export Logs
If you need to send your logs to COTI or to a community member who is helping you, this is the section for you.
Last updated
If you need to send your logs to COTI or to a community member who is helping you, this is the section for you.
Last updated
Please note that this section needs you to study the code which you copy and paste to edit it to your own values. For example you need to use YOUR node address and YOUR SSH port no etc
With a little bit of work you can be retrieving files from your Ubuntu node. I will cover how to do this with both Putty and Termius. I will cover Termius later in the week but if you cant wait just switch to the SFTP option in termius to allow the passing of files to and from your node.
Although this title says through putty, it is actually done through a program called pscp which is written by the makers of Putty. On putty.org website click through to download putty which will then take you through to the screen which contains pscp. See the screenshots below.
Download pscp to the root of your C:\ on your machine (not your node)
The reason we say download pscp to the root of your drive is so that the windows path system can find the pscp file when calling it from command prompt in windows.
If you have hardened your node and you have previously generated a private key (ssh key) to connect to your node with then follow this section.
If you connect to your node with a node username and password that your VPS provider gave you then skip this section.
Please study and then run the following command on your windows command prompt. The command will pull back the logs to your machine if successful into the c:\ProgramData\CotiLogs folder. Be sure to edit the path after the -i part to be the path your private key. Also edit the port after the -P part to be your SSH port number. If you are not sure, this port is listed on the putty settings of your node. Also edit the bit which is "root@coti.mynode.com" to show your ubuntu user AND your node URL.
The node will then ask you for your password to your SSH key. Once entered press enter and the copying of the files will begin. You will now find your files at c:\ProgramData\CotiLogs . You may have to go there manually in windows as ProgramData can be hidden by default. Go to Start > Run > and paste c:\ProgramData\CotiLogs into the open box.
For users that have not done any security enhancements for SSH keys follow this section.
Run the following command on your windows command prompt. The command will pull back the logs to your machine if successful into the c:\ProgramData\CotiLogs folder.
Remember to edit the port (after -P in the code below) to be your SSH port number. If you are not sure, this port is listed on the putty settings of your node. Also edit the bit which is "root@coti.mynode.com" to show your ubuntu user AND your node URL.
Once ran you should see something like this in command prompt
Now just check to see if you see your logs at c:\ProgramData\CotiLogs
You can then send them to coti or your friend by adding the c:\ProgramData\CotiLogs folder to a zip file so you can email it.
The easiest way in windows to make a zip file is to right click the CotiLogs folder and press Send to > Compressed zip file. You can then just email coti the one zip file.