Deepin open SSH remote landing at about the next deepin after installing ssh root user login to solve sh being given: 0: getcwd () failed: No such file or directory

After the installation on next deepin ssh root user login error solution

 

Recently come into contact with deepin, think, wow, except mac, there are so many good-looking, non-win system, and the first measure that Linux, a high degree of tolerance, very suitable for my kind of people prefer to toss, then download the version deepin15 and as a virtual machine successfully installed, after installation, the root user is not found? Well, the basic Linux distribution installed after all this, then add a password to the root user:

<p>sudo passwd root</p>

First, the user will be prompted to enter the current password, and then will be asked to enter it twice in a row the root password, after the completion of:

its -

Enter the root password just set up will be able to log in as root.

Next, install ssh:

apt-get install ssh

After installing, connecting with xshell deepin, after all, quite a graphical interface, the usual deployment of resource-intensive to use shell of what it later set up, root access, success? Is impossible, popup prompt box, ssh server refused to say what the link, when suddenly remembered a previous installation of Ubuntu seems this is the case, then thought might be a problem with the file, well, come right to modify the configuration file ssh :

vi /etc/ssh/sshd_config

Find the following content

 

The contents of the red box to modify the following:

After the amendment is successful, restart the ssh service:

 

Switch to next directory ssh

service ssh restart

Then we will be able to stay in that use xshell even a remote connection and log in with the root user deepin system.

 

sh: 0: getcwd() failed: No such file or directory

 

This error occurs if you run a command in a directory which no longer exists.

Recently come into contact with deepin, think, wow, except mac, there are so many good-looking, non-win system, and the first measure that Linux, a high degree of tolerance, very suitable for my kind of people prefer to toss, then download the version deepin15 and as a virtual machine successfully installed, after installation, the root user is not found? Well, the basic Linux distribution installed after all this, then add a password to the root user:

<p>sudo passwd root</p>

First, the user will be prompted to enter the current password, and then will be asked to enter it twice in a row the root password, after the completion of:

its -

Enter the root password just set up will be able to log in as root.

Next, install ssh:

apt-get install ssh

After installing, connecting with xshell deepin, after all, quite a graphical interface, the usual deployment of resource-intensive to use shell of what it later set up, root access, success? Is impossible, popup prompt box, ssh server refused to say what the link, when suddenly remembered a previous installation of Ubuntu seems this is the case, then thought might be a problem with the file, well, come right to modify the configuration file ssh :

vi /etc/ssh/sshd_config

Find the following content

 

The contents of the red box to modify the following:

After the amendment is successful, restart the ssh service:

 

Switch to next directory ssh

service ssh restart

Then we will be able to stay in that use xshell even a remote connection and log in with the root user deepin system.

 

sh: 0: getcwd() failed: No such file or directory

 

This error occurs if you run a command in a directory which no longer exists.

This error occurs if you run a command in a directory which no longer exists.

Guess you like

Origin www.cnblogs.com/python-xiakaibi/p/11649869.html