rsa -b 2048 -N ''" @server.exec "sudo /usr/sbin/sshd -o AuthorizedKeysFile=$PWD/ssh- key.pub -o PubkeyAuthentication=yes" @pc.exec "bash -c 'sudo ssh -t -t $SUDO_USER@#{@server.ip_address} -i ./ssh-key -o StrictHostKeyChecking=no ip a ' > log/ssh.log" end end Then(/^sshログインに成功$/) do step %(the file "log/ssh.log" should contain "#{@server.ip_address}") end TTIϩάΠϯͷςετ ࣮ࡍʹTTIΛ࣮ߦ