# File lib/net/ssh/service/forward.rb, line 186
186:     def agent(channel)
187:       return if @agent_forwarded
188:       @agent_forwarded = true
189: 
190:       channel.send_channel_request("auth-agent-req@openssh.com") do |achannel, success|
191:         if success
192:           debug { "authentication agent forwarding is active" }
193:         else
194:           achannel.send_channel_request("auth-agent-req") do |a2channel, success2|
195:             if success2
196:               debug { "authentication agent forwarding is active" }
197:             else
198:               error { "could not establish forwarding of authentication agent" }
199:             end
200:           end
201:         end
202:       end
203:     end