PLCNEXT#Use WInSCP And Login as Root

In this Tutorial I will show how to use SFTP protocol to transfer the File From your OS to PLCNEXT CPU inside.(WinSCP is used in this case)

Please use your username and password on the PLCNEXT devices to login .

User name: admin

Password: Print on CPU.

By default, the system is not allowed to login as Root,but we still need to use root permission to move some files.

Please delete the root password after you finished the operation.

Refercen Link

In this Link I showed how to use WinSCP to access the SFTP server.

Beckhoff#TwinCAT BSD WinSCP

Drop Files

Drop your file from the Local OS to PLC NEXT CPU inside.

There are some advanced settings for the Transfer settings, but in this case default is used.

Permission denied error is shown because we do not have the right permission.

Solution

Password

please use this command to setup your root password.

suo passwd root

Enter your Admin Password.

And then Setup your root password.

Login

Use this Command to login as root.

su root

/etc/ssh/sshd_config 

System will load the configuration file while the OpennSSH Server is started. The Path is /etc/ssh/sshd _ config and we need to edit it.

Backup

Backup it before you edit the configuration file.

Use this Command to copy the sshd_config file.

cp sshd_config sshd_config_Bk

edit

Use the Nano Editor to open the ssdh_config file.

nano ssdh_config

ssdh_config is opened.

Serch this Item: # Authentication: and Find #PermitRootLogin yes.

Delete the # character.

Use this command to restart the SSH Server.

/etc/init.d/sshd restart 

Done!

Now you can login as root and drop the file again.

Footer_Basic

Please Support some devices for my blog

Amazon Gift List

Find ME

Twitter:@3threes2
Email:soup01threes*gmail.com (* to @)
YoutubeChannel:https://www.youtube.com/channel/UCQ3CHGAIXZAbeOC_9mjQiWQ

シェアする

  • このエントリーをはてなブックマークに追加

フォローする