Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to get the Ubuntu distribution

101 bytes added, 05:29, 9 September 2010
no edit summary
I have only an ethernet cable, so I'm going on. Put these lines in /media/rootfs/etc/rc.local&nbsp;: <br>
<pre>apt-get install -y openssh-server 2&gt;&amp;1 | tee /root/install.log
useradd -G admin,root -s /bin/bash -m -pigep igep
exit 0
</pre>
<pre>sudo nmap -sS -PN -e &lt;interface&gt; -p22 &lt;ip&gt;
</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&nbsp;:<br>
<pre>* ON&nbsp;THE IGEP *
$ chmod 600 authorized_keys
$ cat /wherever/it/is/your's/id_rsa.pub &gt;&gt; authorized_keys
</pre>Remember to enable PubkeyAuthentication in /media/rootfs/etc/ssh/sshd_config &nbsp;:<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]]
0
edits