0
edits
Changes
From IGEP - ISEE Wiki
no edit summary
I have only an ethernet cable, so I'm going on. Put these lines in /media/rootfs/etc/rc.local : <br>
<pre>apt-get install -y openssh-server 2>&1 | tee /root/install.log
useradd -G admin,root -s /bin/bash -m -pigep igep
exit 0
</pre>
<pre>sudo nmap -sS -PN -e <interface> -p22 <ip>
</pre>
If you can't connect with because login password is wrong, you can modify your password placing:<br>
<pre>echo "user:password" | chpasswd
</pre>
at the end of /media/rootfs/etc/rc.local or create a key with ssh-keygen and copy the content of your .ssh/id_rsa.pub in authorized_keys :<br>
<pre>* ON THE IGEP *
$ chmod 600 authorized_keys
$ cat /wherever/it/is/your's/id_rsa.pub >> authorized_keys
</pre>Remember to enable PubkeyAuthentication in /media/rootfs/etc/ssh/sshd_config :<br>
<pre>PubkeyAuthentication yes
</pre>==== Minor problems<br> ==== */etc/hosts is missing and generates a sudo error
--- That's all folks ---
[[Category:Software_distributions|Ubuntu]]