Quantcast
Viewing all articles
Browse latest Browse all 60861

Re: How to install a Trusted CA Certificate to the Edgerouter (and access the Edgerouter with an IP

I assume you are referring to WinSCP?

 

Your problem is probably that you need root permissions to copy the file to the required location, but the root account can't be used for logon.  And you can't elevate your session inside WinSCP.

 

Two options to workaround:  

  • use putty - log in with your account, then elevate using 'sudo -i'
sudo -i

You can use vi or nano to create the file you need, then, on your Windows machine, copy the content, then paste the content in via putty (right-click to paste).  I prefer nano, but you have to install it first -

apt-get update                 *You need elevated privilege for these commands
apt-get install nano

 

  • use WinSCP and copy the desired files to the home folder of the user account you are using.  Then login with putty, elevate to root, then with that privilege, use putty to move the file to where you want it.
sudo -i
mv /home/myusername/filefromwindows /path/to/endlocation/filename

If you do it the second way, you should also run dos2unix on the file to convert the dos formatted file to the linux format.     

dos2unix fileyoujustcopiedviaWinSCP

 

 

 

 


Viewing all articles
Browse latest Browse all 60861

Trending Articles