I am attempting to connect to a router using SSH, running 64-bit Lubuntu 17.04, which I have configured in VirtualBox.
It connects, but only after requesting for the password twice.
The hostname and hosts files on Lubuntu appear as follows:
The command to connect is:
The port forwarding rule in VirtualBox appears as shown below.
Any suggestions as to how to ensure the password is only requested once or not at all ?
Thanks
It connects, but only after requesting for the password twice.
The hostname and hosts files on Lubuntu appear as follows:
Code:
pl@router1:/etc$ cat hosts
# 127.0.0.1 localhost
127.0.1.1 router1
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Code:
pl@router1:/etc$ cat hostname
router1
Code:
$ ssh -l pl -p 14601 localhost
pl@localhost's password:
Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-21-generic x86_64)
0 packages can be updated.
0 updates are security updates.
Last login: Tue May 23 09:47:10 2017 from 10.0.2.2
[....] Starting ssh (via systemctl): ssh.service==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'ssh.service'.
Authenticating as: pl,,, (pl)
Password:
==== AUTHENTICATION COMPLETE ===
. ok
pl@router1:~$
Any suggestions as to how to ensure the password is only requested once or not at all ?
Thanks