Linux anydesk set password

imami / anydesk-enable-remote-access.md

###AnyDesk — How Enable Remote Access from ubuntu/debian terminal.

Here are the commands might be usefull in this purpose:

  • anydesk —get-status : To get current status of anydesk, which might be offlien,online or nothing.
  • anydesk —get-id : To get the ID that your system can be accessed by.
  • anydesk —service : To start anydesk service if not already running (for Linux).
  • anydesk —restart-service : To restart anydesk service
  • anydesk —stop-service : To stop anydesk service
  • sudo echo qazwsxedc | anydesk —set-password : to set password on anydesk (required to access from a remote system).

In case that your target machine is a kind of a Ubuntu or a Debian based one:

  1. echo -e «ad.security.allow_logon_token=true\nad.features.unattended=true» >> ~/.anydesk/user.conf
  2. sudo echo [your-custom-password] | anydesk —set-password
  3. sudo sed -i » -e ‘s/# AutomaticLogin/AutomaticLogin/g’ -e ‘s/#WaylandEnable/WaylandEnable/g’ /etc/gdm3/custom.conf
  4. sudo reboot
  5. Drink your coffee, and wait until your system becomes up and accessible via ssh or terminal.
  6. Run anydesk —get-status , if its not online then run anydesk —service .
  7. Run anydesk —get-id && echo to get your desk id.
  8. Use your desk id in your Anydesk client, to access the remote system.

When running the sudo echo [your-custom-password] | anydesk —set-password command, it should present the message:

Setting the password requires administrator privileges and an installed service. 1 / 1000 

To resolve the above issue, it should change into the following command:

sudo echo openstack | sudo anydesk --set-password 

I have server ubuntu without gui, can use anydesk to connect ?

@amatteo78, it’s possible to install the anydesk without GUI in Ubuntu. Please consider using the following installation steps:

root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# apt-get update Get:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB] Hit:2 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease Get:3 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease [88.7 kB] Get:4 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease [74.6 kB] Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:6 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packages [2730 kB] Get:7 https://packages.clickhouse.com/deb stable InRelease [5536 B] Get:8 https://packages.clickhouse.com/deb stable/main amd64 Packages [18.4 kB] Fetched 3248 kB in 1s (3231 kB/s) Reading package lists. Done root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# curl -fsSL https://keys.anydesk.com/repos/DEB-GPG-KEY|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/anydesk.gpg root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# echo "deb http://deb.anydesk.com/ all main" | sudo tee /etc/apt/sources.list.d/anydesk-stable.list deb http://deb.anydesk.com/ all main root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# apt-get update Get:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB] Hit:2 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease Hit:3 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease Hit:4 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease Get:6 http://deb.anydesk.com all InRelease [5588 B] Hit:7 https://packages.clickhouse.com/deb stable InRelease Get:8 http://deb.anydesk.com all/main amd64 Packages [644 B] Fetched 248 kB in 1s (335 kB/s) Reading package lists. Done root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# apt-get install anydesk Reading package lists. Done Building dependency tree Reading state information. Done The following additional packages will be installed: libfile-desktopentry-perl libfile-mimeinfo-perl libgail-common libgail18 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkglext1 libnet-dbus-perl libpangox-1.0-0 libtie-ixhash-perl libx11-protocol-perl libxml-twig-perl libxml-xpathengine-perl xdg-utils Suggested packages: libunicode-map8-perl libunicode-string-perl xml-twig-tools The following NEW packages will be installed: anydesk libfile-desktopentry-perl libfile-mimeinfo-perl libgail-common libgail18 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkglext1 libnet-dbus-perl libpangox-1.0-0 libtie-ixhash-perl libx11-protocol-perl libxml-twig-perl libxml-xpathengine-perl xdg-utils 0 upgraded, 16 newly installed, 0 to remove and 3 not upgraded. Need to get 8989 kB of archives. After this operation, 25.1 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) . Processing triggers for libc-bin (2.27-3ubuntu1.6) . Processing triggers for man-db (2.8.3-2ubuntu0.1) . Processing triggers for hicolor-icon-theme (0.17-2) . Processing triggers for mime-support (3.60ubuntu1) . root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~ root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# anydesk --get-status online root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# echo "password" | anydesk --set-password .

After running above commands, please follow this section to complete the Anydesk setting in the targeted machine.

Читайте также:  Добавить иконки linux mint

Источник

Command-Line Interface for Linux

The following commands can be entered in the Linux terminal or can be used in a script in order to automate parts of AnyDesk.

Installation Commands

AnyDesk for Linux can be downloaded and updated via the command-line interface using the AnyDesk repositories. Instructions on how to set up and use the repositories can be found below:

Client Commands

These commands can be used to interact with the AnyDesk client through the terminal or scripts.

Command Description
anydesk See Client Command Parameters.
echo | anydesk —set-password Set the specified password for unattended access. (Needs to be used as root).
echo | anydesk —register-license Register the specified license key.

Client Command Parameters

Parameter Description
—get-alias Return the AnyDesk-Alias.
—get-id Return the AnyDesk-ID.
—get-status Return the client’s online status.
—version Return the current AnyDesk client version.
—settings Open the default settings page.
—admin-settings Open the specified global settings page. (Needs to be used as root).
—admin-settings:
Viable parameters:
capture, security, connection, recording.
Open the administrative settings on the specific page. (needs to be used as root)

Connection Commands

A connection can be established through the command-line interface.
When requesting a connection through the command line, several parameters can be appended.

AnyDesk will request a connection to the specified client.

Optional Connection Command Parameters.

Parameter Description
—file-transfer AnyDesk will start a File Transfer session.
—fullscreen AnyDesk will start an interactive session in fullscreen mode.

Источник

How to Install AnyDesk on Ubuntu 20.04 LTS (Focal Fossa)

AnyDesk is remote desktop application which allows to connect to remote desktop. It is platform independent and proprietary software which allow to connect Windows Server from Linux Desktop and vice-versa. Anydesk can be used specially in troubleshooting the remote systems. Apart from desktop sharing it can also be used for file transfer and VPN.

In this article, we will demonstrate how to install anydesk tool on Ubuntu 20.04 LTS system.

Minimum requirements for AnyDesk

  • Minimal Ubuntu 20.04 LTS system
  • Sudo User with privileges
  • Internet Connection

Step 1) Update Apt Package Index

Login to Ubuntu 20.04 LTS system and open the terminal and run beneath command to update apt package index.

Step 2) Configure AnyDesk Package Repository

Anydesk package is not available in the default package repository of Ubuntu 20.04 LTS system. So, to install it with apt command configure its official Debian repository.

Run the following command to configure repository and install public key.

$ echo "deb http://deb.anydesk.com/ all main" | sudo tee /etc/apt/sources.list.d/anydesk-stable.list $ wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add

Configure-Anydesk-Package-Repository-Ubuntu-20-04

Step 3) Install AnyDesk with apt command

Run following commands to install latest and stable version of anydesk,

$ sudo apt update $ sudo apt install -y anydesk

Output of above commands would like below,

Install-anydesk-Ubuntu-20-04

Once anydesk and its dependencies are installed successfully and try starting the anydesk.

Step 4) Start AnyDesk

To start anydesk in Ubuntu 20.04, search anydesk from activity and then click on its icon.

Search-Anydesk-Ubuntu-20-04

Anydesk-Window-Ubuntu

As we can see above, anydesk is started and is in ready state. If you wish to set password against your anydesk id then click on set password option below to anydesk id.

Set-Password-Anydesk-id-ubuntu-20-04

Now you can share the anydesk id to your teammate or colleague and then he/she can take remote desktop of your system and can perform all the tasks.

In case you are not satisfy with anydesk and want to uninstall from the system then run following command.

$ sudo apt remove -y anydesk

That’s all from this post, I hope these steps help you to install Anydesk on Ubuntu 20.04 LTS system. Please do share your feedback and questions in below comments section.

Источник

Cannot access security panel from anydesk

When I go to enable the security settings on anydesk, It asks for my password and then does nothing after. I cannot set up unattended access, which is what I need to be able to work on that machine. Any ideas?

5 Answers 5

This worked for me: Setting the password using the command line https://support.anydesk.com/Command_Line_Interface

echo mynewpassword | sudo anydesk --set-password 

the echo password | sudo anydesk —set-password fix does work but you need to completely restart anydesk for it to take place.

and kill all anydesk leftover processes, then restart anydesk .

Based on @padje answer, I suggest you this one-line command for restarting completely anydesk :

kill $(ps -aux | grep anydesk | awk '') | anydesk --service 
  • ps -aux would show every active processes
  • grep anydesk would find every anydesk processes running, displayed into ps output
  • awk » would take the PID column (which is the 2nd)
  • kill closed every commands refered to PIDs given by combinaison of 3 previous command ( ps + grep + awk ). You can also add the -9 option to kill , to force them to close (notably when they are totally frozed)
  • anydesk —service would start again anydesk (correct me in comment if I do a mistake here

NB : this type of command line can be used for some software, when you want to restart them manually (and when you can’t use service restart )

Источник

Оцените статью
Adblock
detector