New answers tagged

1

You can use ssh -O FingerprintHash=md5 user@host to use old-school MD5 hashes, or store this in your ~/.ssh/config: FingerprintHash md5 You server is probably using old openssh version which does not support new sha256 hashses.


2

The option ClientAliveInterval does exactly what you want, it basically sends pings in the specified interval (in seconds) and kills the connection if it doesn't receive an answer. To control how fast it kills the connection, you can use ClientAliveCountMax, which is the maximum number of pings to send without receiving a response before considering the ...


0

You installed the openssh binaries, but not its Upstart service (the glue connecting ubuntu and openssh service). You also probably installed the files with different paths than used in Ubuntu so getting service file (/etc/init.d/ssh) from Ubuntu wont solve the problem completely (but can give you some guide). Regardless what makes you install openssh from ...


2

scp -P 24 /home/aa/video/a.mp4 user@222.222.222.222:/home/aa/video/a.mp4.new The "P" is upper case. You don't need to worry about the "local port", scp can access the filesystem directly, it doesn't need the network for it.


2

You do not have to mention a source port, it will be a auto-generated (>=1024). Also to mention a custom port number use -P option, -p is to preserve metadata. Do: scp -P 24 /home/aa/video/a.mp4 user@222.222.222.222:/home/aa/video/a.mp4.new


0

One available option is to use saltstack to execute the same command on each minion. After adding salt to each computer you can run the same command on each machine with something like salt '*' cmd.exec_code python 'import sys; print sys.version' If you are using blender's network render addon then you could also configure a blend file to have network ...


2

If you have no physical access to the hardware, no web-based control panel, and there is no operating system whatsoever on the machine, then I don't know of any way to install an operating system on it remotely. If you were able to install an operating system on this computer over the internet, so would anyone in the world with its IP address -- and ...


1

It depends on how you have set up networking in Virtualbox between the host and the guest. The two most common set-ups are NAT or Bridged. In the NAT (Network Address Translation) case you will have to set up port forwarding to access the guest from your host. AFAIK, this is the default for Virtualbox and you will likely be using that if you have not ...


1

In Ubuntu, the default SSH policy is "Deny root login via SSH directly, except by SSH Key Authentication only." This is done by the PermitRootLogin without-password line of /etc/ssh/sshd_config. You can enable root password login over SSH by changing that line to say PermitRootLogin yes. However I must caution you - this permits brute forcing attempts ...


0

On the remote machine type sudo passwd This will allow you to set the root password on the remote pc. You can then type on your local machine ssh-copy-id root@remotepc After which you will be prompted with a password prompt where you will enter the password you created earlier. From then on when you type ssh root@remotepc You will not be prompted ...


0

Looks like this this question may provide an answer. I need to "log in as root using sudo -s then use passwd command to set root password." SOLUTION: I used sudo su - root and passwd which worked.However this lead to a permission denied error when trying ssh -l root slave3 , subject of a new question.


0

Hi guys i was also facing same issue, But it has been resolve by using sublime text 2. I was trying on sublime Text 3 Beta version which Been two slow after adding remote mount folder, So i just moved on sublime text 2 and now its running fine without any delay in sync.


0

I figured this out. In order to get it to work I had to: Make sure the default_realm is set in /etc/krb5.conf log in as DOMAIN\username where DOMAIN is the short NETBIOS version of the domain name in all caps. Other variations of the domain name worked with a password, but not with a kerberos ticket and GSSAPI.


0

ssh-copy-id is not magic! # where is ssh-copy-id? $ type -p ssh-copy-id /usr/bin/ssh-copy-id # What is ssh-copy-id? $ file $( !! ) file $( type -p ssh-copy-id ) /usr/bin/ssh-copy-id: POSIX shell script, ASCII text executable Next, you need to read ssh-copy-id, find out what ssh-copy-id does, and find alternate ways to accomplish the same tasks. If a shell ...


0

you can send a file with SCP too: scp filename username@hostname:/path/to/send/to You can also use an IP instead of host name: scp filename username@10.0.0.1:/path/to/send/to


-1

Its easy. Suppose You need to move a file to secure directory. Use the following command after opening terminal (from the directory in which the file to moved is situated)-- my whole path was ziad@Cornelious:~/Work$ sudo mv master /var/www/html In this case "master" folder was in "Work" directory/folder. Use the following command-- sudo mv master /var/www/...


1

To have X11 forwarding working, you need to have xauth installed on the remove server. Verify it is there. There should probably be also some guide in the server error log, complaining about missing executable or so.


1

This issue has been solved w. a recent Ubuntu update, no problem anymore! Thanks for helping


2

SSHv1 is obsolete from current openssh. If you want to use this obsolete protocol, you need to install openssh-client-ssh1 package and use ssh1 binary, which has still SSHv1 support. ssh1 -1 -c 3des user@192.168.0.10 should do the job for you.


0

Found the solution! I needed to add a password for root... The command I used is: sudo passwd root


1

The debugging steps should be as follows Check if you both are on the same network by doing a ping test ping <ip address> Now check if the ssh daemon is working or not by using the netstat command netstat -lpn | grep ":22" If true is answer for the above steps , the connection should work.


1

Instead of running that: sudo dpkg -r openssh-client sudo apt-get install ssh


2

In short, yes. You may need to re-register and/or re-import the private keys from these locations, but you can do that after installing the respective tools. However, you should make sure that you actually backed up the private keys and that they're valid. md5summing is good enough for this.


0

Ubuntu 16.04 has disabled dsa keys and now only accepts rsa keys. This got me too, but fortunately I had password access still enabled. You can add Host * PubkeyAcceptedKeyTypes=+ssh-dss to ~/.ssh/config, or switch to rsa keys. Once you get in...


2

Since your local network works, but remote doesn't, you need to check your router settings. Specifically, you need to enable port forwarding for port 22 (or another higher port and then configure the SSH server to listen on that port) from the outside to the server IP on the inside of the network. This process varies from router to router, so you may have ...


2

You can use netcat to test this: if nc -z remote.host.example.com 22; then echo "Connection to TCP/22 succeeded" else echo "Connection to TCP/22 failed" fi


0

Let's call your new user testapp: You have to remove read access for "other" of all files and folders. chmod -R o-r / then chown -R :testapp /var/www/html/testapp and finally chmod -R g+rwx /var/www/html/testapp Remove your new user from the www-data group, but remember when www-data cannot read files, it won't be readable on your website


0

set root password using following command sudo passwd


0

If u have not given password for root and you are trying to fire command on spark or haddop like ./sbin/stop-all.sh or./sbin/start-all.sh . If you don't have a root password, you can setup one using sudo passwd and fire commands.


0

I was finally able to find an answer to my question here: https://calomel.org/firefox_ssh_proxy.html. The tutorial if for firefox but it works well for FTP trafic too. First you need to create SOCKS 5: ssh -C2qTnN -D 2121 user@yourvpsip 2121 - this is selected port number. You can probably use any port but for forts between 0 and 1023 you need to use ...


1

You say in your question that you have ufw allowing all outgoing connections. Adding a key would be an incoming connection in my mind. Run the following command on your server to open port 22 for incoming. Sudo ufw allow 22 Then restart ssh Sudo service ssh restart And try to import your key again. Also you may want to consider moving ssh to an ...


0

No supported authentication methods available: Server sent public key. This says that server is able to use pubkey authentication, but you didn't provide any key. Make sure that the key is configured in the client.


0

ssh-copy-id wants to communicate with a SSH server (sshd on Linux). The SSH server listens to port 22. Ensure that you have an SSH server running on the target (Windows) system, and check its logs.


1

SSH does not use UDP. UDP is only used by alternative implementations like mosh.


1

For remote access: Check etc\mysql\my.cnf to see that the bind-address is not set to 127.0.0.1. Either set it to 0.0.0.0, or, to be more secure, add your IP address: bind-address = 127.0.0.1 bind-address = your_public_ip Create a user in the mysql table: CREATE USER 'non-root-user'@'localhost' IDENTIFIED BY 'any_password_u_like'; CREATE USER '...


0

The easiest way is just to replace existing gnome-keyring-daemon session using command: gnome-keyring-daemon --replace --daemonize --components=pkcs11,secrets,gpg You can see my full answer on this thread http://askubuntu.com/a/786722/556814


0

Unfortunately, this problem is intermittent and that has confounded my troubleshooting efforts. The answer @Terrance gave above, which I marked as The Answer, is actually not a solution to the problem for me. It seemed to work, and actually worked for a while. Then I ran into problems again. Sometimes stopping my ssh session and restarting it would cure ...


-1

By and large it's mainly a strategic difference. If you're logged in as a super user, you can change anything all the time ... ie - there's no protection against catastrophic mistakes, you'd have to temporarily change to some other user for safety. Whereas: if you're logged in with limited privileges, you avoid some risk of catastrophic mistakes, because ...


1

You can output things manually by sudo run-parts /etc/update-motd.d/ Normally the only way to update the file is by triggering pam_motd and on 'standard' ubuntu systems the services 'login' and 'sshd' do that. Look at grep pam_motd /etc/pam.d/* if you want to know more. If you want to update /etc/motd you can redirect the output there: run-parts /...


0

If you have a copy of your ssh keys (e.g., on a USB stick) then simply copy the key files to the ~/.ssh/ directory. E.g., cp /path/to/my/key/id_rsa ~/.ssh/id_rsa cp /path/to/my/key/id_rsa.pub ~/.ssh/id_rsa.pub Otherwise, you will need to create a new one and add it to your GitHub account https://help.github.com/articles/adding-a-new-ssh-key-to-your-...


1

I have to use a proxy everyday at work in order to connect to servers on the other side of a firewall. I also use Firefox, Chrome and Ubuntu 16.04. EDIT: I forgot one part of this. I have had to add a timeout to a ssh config file or my tunnel will timeout and I lose my connection. Once I added the following stuff, my connection stays open: In ~/.ssh/...


0

We can use sshpass in combination with ssh in order to login to a server. You can install sshpass via sudo apt-get install sshpass if your haven't already. The trick is the usage of both sshpass and ssh in a single line like this: sshpass -p "YOURPASSWORD" ssh user@server.com -p 2222 But that's something you already knew. And in order to avoid writing ...


1

My answer to list every user logged, in unique way. w | tail -n +3 | cut -d " " -f1 | sort | uniq


0

You can leave the password blank when generating the private keys, if you do so, it will not ask for a password when establishing the connection later. rsync should work if you can establish a connection for "direct access" without a password, as long as you are using the same user (crontab -e). If you are running this from a root crontab (/etc/crontab or /...


2

Certain DE environments starts their own applications that can behave as a ssh-agent and that can be forwarded. But it is not probably the case for the i3. If you want to use "ssh-agent forwarding" (it is not "authentication forwarding" as you note), you need to have ssh-agent running and your keys loaded inside. You can verify that simply using command ...


1

If you want to retry the SSH connection without retyping the command try something like a loop command until ssh command here; do sleep 5; done This should retry your SSH command until it succeeds with 5 seconds delays between each attempt.


1

Your solution is "wakeonlan". Most modern motherboards support it. I actually haven't come across one that doesn't yet if it is for a x86 processor. Ubuntu 14.04 sudo apt-get install wakeonlan Ubuntu 16.04 sudo apt install wakeonlan To wake your pc up, find the MAC address of your NIC and issue the command. wakeonlan <MAC_ADDRESS> That easy!...


1

You can background the process by appending a & at the end e.g.: ./forge.x86_64 & You can do the same for other processes too. To view the list of currently backgrounded jobs, check the output of jobs command. The jobs will be shown with a job ID on the left, which can be used to get the job in the foreground again by fg %<Job_ID> e.g.: ...


0

Turns out my ISP was blocking port 22 all along! Following Jakuje's tips I looked into the port forwarding. I am now using a virtual server to redirect port 2222 to 22, so I didn't have to change anything in my configurations, just add a :2222 at the end of my IP. Thanks for all the help guys!


1

You are not connecting to your Ubuntu server, but to the router or something else on the network: debug1: Remote protocol version 2.0, remote software version dropbear_0.52 This line should idenitify your server as openSSH, but it says dropbear (usually routers and embedded systems). Once more, check the port forwarding on your router and make sure that ...



Top 50 recent answers are included