# File lib/net/ssh/service/forward.rb, line 176
176:     def agent(channel)
177:       return if @agent_forwarded
178:       @agent_forwarded = true
179: 
180:       channel.send_channel_request("auth-agent-req@openssh.com") do |achannel, success|
181:         if success
182:           debug { "authentication agent forwarding is active" }
183:         else
184:           achannel.send_channel_request("auth-agent-req") do |a2channel, success2|
185:             if success2
186:               debug { "authentication agent forwarding is active" }
187:             else
188:               error { "could not establish forwarding of authentication agent" }
189:             end
190:           end
191:         end
192:       end
193:     end